1 #ifndef _INCLUDED_COMMANDS_H 2 #define _INCLUDED_COMMANDS_H 1 3 4 #define PREAMBLE_MODE 1 5 #define DOCUMENT_MODE 2 6 #define ITEMIZE_MODE 3 7 #define ENUMERATE_MODE 4 8 #define DESCRIPTION_MODE 5 9 #define INPARAENUM_MODE 6 10 #define LETTER_MODE 8 11 #define IGNORE_MODE 9 12 #define HYPERLATEX_MODE 10 13 #define FIGURE_MODE 11 14 #define GERMAN_MODE 12 15 #define FRENCH_MODE 13 16 #define RUSSIAN_MODE 14 17 #define GENERIC_MODE 15 18 #define CZECH_MODE 16 19 #define APACITE_MODE 17 20 #define NATBIB_MODE 18 21 #define HARVARD_MODE 19 22 #define AUTHORDATE_MODE 20 23 #define VERSE_MODE 21 24 #define VERBATIM_MODE 22 25 #define QUOTE_MODE 23 26 #define QUOTATION_MODE 24 27 #define BIBLIOGRAPHY_MODE 25 28 #define HYPERREF_MODE 26 29 #define ACRONYM_MODE 27 30 #define SPACING_MODE 28 31 32 #define ON 0x4000 33 #define OFF 0x0000 34 35 void PushEnvironment(int code); 36 void PopEnvironment(void); 37 int CallCommandFunc(char *cCommand); 38 void CallParamFunc(char *cCommand, int AddParam); 39 int CurrentEnvironmentCount(void); 40 41 /* 42 * move this here to associate the CommandArray 43 * with the implementation of the commands 44 * i.e. place the array for the acronym commands 45 * in acronyms.c 46 */ 47 typedef struct commandtag { 48 char *cmd_name; /* LaTeX command name without \ */ 49 void (*func) (int); /* function to convert LaTeX to RTF */ 50 int param; /* used in various ways */ 51 } CommandArray; 52 53 #endif 54