X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4538b3f1b0a3f36d5fe91559afa86c1a1063f751..6d9022fe3bb50a75b9b5eaf5cf32558e518ba310:/utils/tex2rtf/src/tex2any.h diff --git a/utils/tex2rtf/src/tex2any.h b/utils/tex2rtf/src/tex2any.h index 259b1d5882..5280483dd3 100644 --- a/utils/tex2rtf/src/tex2any.h +++ b/utils/tex2rtf/src/tex2any.h @@ -139,6 +139,7 @@ extern wxHashTable TopicTable; void AddKeyWordForTopic(char *topic, char *entry, char *filename = NULL); void ClearKeyWordTable(void); +extern char wxTex2RTFBuffer[]; extern TexChunk *TopLevel; extern wxHashTable MacroDefs; extern wxStringList IgnorableInputFiles; // Ignorable \input files, e.g. psbox.tex @@ -147,7 +148,7 @@ bool read_a_line(char *buf); bool TexLoadFile(char *filename); int ParseArg(TexChunk *thisArg, wxList& children, char *buffer, int pos, char *environment = NULL, bool parseArgToBrace = TRUE, TexChunk *customMacroArgs = NULL); -int ParseMacroBody(char *macro_name, TexChunk *parent, int no_args, +int ParseMacroBody(const char *macro_name, TexChunk *parent, int no_args, char *buffer, int pos, char *environment = NULL, bool parseArgToBrace = TRUE, TexChunk *customMacroArgs = NULL); void TraverseDocument(void); void TraverseFromChunk(TexChunk *chunk, wxNode *thisNode = NULL, bool childrenOnly = FALSE); @@ -159,7 +160,7 @@ extern FILE *CurrentOutput2; void AddMacroDef(int the_id, const char *name, int n, bool ignore = FALSE, bool forbidden = FALSE); void TexInitialize(int bufSize); void TexCleanUp(void); -void TexOutput(char *s, bool ordinaryText = FALSE); +void TexOutput(const char *s, bool ordinaryText = FALSE); char *GetArgData(TexChunk *chunk); char *GetArgData(void); // Get the string for the current argument int GetNoArgs(void); // Get the number of arguments for the current macro @@ -248,6 +249,8 @@ 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 +extern bool ignoreBadRefs; // Don't insert (REF NOT FOUND) +extern char *htmlFaceName; // HTML face name // Names to help with internationalisation extern char *ContentsNameString; @@ -367,7 +370,7 @@ void Tex2RTFYield(bool force = FALSE); // make up a topic name otherwise. char *FindTopicName(TexChunk *chunk); // Force the current topic to be this (e.g. force 'references' label). -void ForceTopicName(char *name); +void ForceTopicName(const char *name); void ResetTopicCounter(void); // Parse unit eg. 14, 12pt, 34cm and return value in points. @@ -396,7 +399,7 @@ 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); + TexRef(const char *label, const char *file, const char *section, const char *sectionN = NULL); ~TexRef(void); }; @@ -530,12 +533,12 @@ class ColourTableEntry: public wxObject unsigned int green; unsigned int blue; - ColourTableEntry(char *theName, unsigned int r, unsigned int g, unsigned int b); + ColourTableEntry(const char *theName, unsigned int r, unsigned int g, unsigned int b); ~ColourTableEntry(void); }; extern wxList ColourTable; -extern void AddColour(char *theName, unsigned int r, unsigned int g, unsigned int b); +extern void AddColour(const char *theName, unsigned int r, unsigned int g, unsigned int b); extern int FindColourPosition(char *theName); // Converts e.g. "red" -> "#FF0000" extern bool FindColourHTMLString(char *theName, char *buf);