X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14204c7acc3f89b59b07580da7da3448fb49f23b..b6e5eaa59701315ca06996ff845872ca4122695f:/utils/tex2rtf/src/tex2any.h diff --git a/utils/tex2rtf/src/tex2any.h b/utils/tex2rtf/src/tex2any.h index 37d25fb7b8..1660cb3575 100644 --- a/utils/tex2rtf/src/tex2any.h +++ b/utils/tex2rtf/src/tex2any.h @@ -34,6 +34,13 @@ #define FORBID_WARN 1 #define FORBID_ABSOLUTELY 2 + +#ifdef __WXMSW__ + const int MAX_LINE_BUFFER_SIZE = 600; +#else + const int MAX_LINE_BUFFER_SIZE = 11000; +#endif + class TexMacroDef: public wxObject { public: @@ -209,6 +216,8 @@ extern bool winHelp; // Output in Windows Help format if TRUE, linear otherwise extern bool isInteractive; extern bool runTwice; extern int convertMode; +extern bool checkCurleyBraces; +extern bool checkSyntax; extern bool stopRunning; extern int mirrorMargins; extern bool headerRule; @@ -387,21 +396,10 @@ class TexRef: public wxObject char *refFile; // Reference filename (can be NULL) char *sectionNumber; // Section or figure number (as a string) char *sectionName; // name e.g. 'section' - TexRef(char *label, char *file, char *section, char *sectionN = NULL) - { - refLabel = copystring(label); - refFile = file ? copystring(file) : (char*) NULL; - sectionNumber = section ? copystring(section) : copystring("??"); - sectionName = sectionN ? copystring(sectionN) : copystring("??"); - } - ~TexRef(void) - { - delete[] refLabel; delete[] refFile; delete[] sectionNumber; delete[] sectionName; - } + TexRef(char *label, char *file, char *section, char *sectionN = NULL); + ~TexRef(void); }; -extern wxHashTable TexReferences; - /* * Add a reference * @@ -511,6 +509,7 @@ class CustomMacro: public wxObject else macroBody = NULL; } + ~CustomMacro(); }; bool ReadCustomMacros(char *filename);