X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a29912f608e082001ee53b9873323c4bcd71f21..8f974c520a8733158591891458fda10fae4c3950:/utils/tex2rtf/src/tex2any.h?ds=sidebyside diff --git a/utils/tex2rtf/src/tex2any.h b/utils/tex2rtf/src/tex2any.h index db5b1914de..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; @@ -238,6 +247,7 @@ extern char *textColourString; // HTML text colour extern char *linkColourString; // HTML link colour extern char *followedLinkColourString; // HTML followed link colour extern bool combineSubSections; // Stop splitting files below section +extern bool htmlWorkshopFiles; // generate HTML Help Workshop project files // Names to help with internationalisation extern char *ContentsNameString; @@ -386,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 * @@ -510,6 +509,7 @@ class CustomMacro: public wxObject else macroBody = NULL; } + ~CustomMacro(); }; bool ReadCustomMacros(char *filename);