]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/tex2rtf/src/tex2any.h
Corrected DoBlit code to use offset into mask
[wxWidgets.git] / utils / tex2rtf / src / tex2any.h
index db5b1914deee64bc07e1a0b45787907c0d314d8f..22068f38a93b15f62ca63f3ec1727505675c1a2d 100644 (file)
 #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:
@@ -238,6 +245,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 +394,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 +507,7 @@ class CustomMacro: public wxObject
     else
       macroBody = NULL;
   }
+  ~CustomMacro();
 };
 
 bool ReadCustomMacros(char *filename);