int macroId;
TexMacroDef(int the_id, const wxChar *the_name, int n, bool ig, bool forbidLevel = FORBID_OK);
- ~TexMacroDef(void);
+ virtual ~TexMacroDef(void);
};
#define CHUNK_TYPE_MACRO 1
wxChar *filename;
wxStringList *keywords;
TexTopic(wxChar *f = NULL);
- ~TexTopic(void);
+ virtual ~TexTopic(void);
};
extern wxHashTable TopicTable;
void AddKeyWordForTopic(wxChar *topic, wxChar *entry, wxChar *filename = NULL);
bool DefaultOnArgument(int macroId, int arg_no, bool start);
// Called on error
-void OnError(const wxChar *msg);
+void OnError(const wxString& msg);
// Called for information
-void OnInform(const wxChar *msg);
+void OnInform(const wxString& msg);
// Special yield wrapper
void Tex2RTFYield(bool force = false);
void ResetTopicCounter(void);
// Parse unit eg. 14, 12pt, 34cm and return value in points.
-int ParseUnitArgument(wxChar *unitArg);
+int ParseUnitArgument(const wxChar *unitArg);
// Set small, large, normal etc. point sizes for reference size
void SetFontSizes(int pointSize);
wxChar *sectionNumber; // Section or figure number (as a string)
wxChar *sectionName; // name e.g. 'section'
TexRef(const wxChar *label, const wxChar *file, const wxChar *section, const wxChar *sectionN = NULL);
- ~TexRef(void);
+ virtual ~TexRef(void);
};
/*
extern wxList BibList;
extern wxStringList CitationList;
-bool ReadBib(wxChar *filename);
+bool ReadBib(const wxChar *filename);
void OutputBib(void);
void ResolveBibReferences(void);
-void AddCitation(wxChar *citeKey);
-TexRef *FindReference(wxChar *key);
+void AddCitation(const wxChar *citeKey);
+TexRef *FindReference(const wxChar *key);
/*
* Ability to customize, or at least suppress unknown macro errors
else
macroBody = NULL;
}
- ~CustomMacro();
+ virtual ~CustomMacro();
};
bool ReadCustomMacros(const wxString& filename);
unsigned int blue;
ColourTableEntry(const wxChar *theName, unsigned int r, unsigned int g, unsigned int b);
- ~ColourTableEntry(void);
+ virtual ~ColourTableEntry(void);
};
extern wxList ColourTable;