#include "wx/list.h"
#include "wx/hash.h"
#include "wx/tokenzr.h"
+#include "wx/wfstream.h"
+#include "wx/txtstrm.h"
#include "wxhlpblk.h"
/*
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);
extern bool StringMatch(const wxChar *one, const wxChar *two, bool subString = true, bool exact = false);
// Define a variable value from the .ini file
-wxChar *RegisterSetting(wxChar *settingName, wxChar *settingValue, bool interactive = true);
+wxChar *RegisterSetting(const wxString& settingName, const wxString& settingValue, bool interactive = true);
// Major document styles
#define LATEX_REPORT 1
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);
};
/*
class CustomMacro: public wxObject
{
- public:
- wxChar *macroName;
- wxChar *macroBody;
- int noArgs;
- inline CustomMacro(wxChar *name, int args, wxChar *body)
- {
- noArgs = args;
- macroName = wxStrcpy(new wxChar[wxStrlen(name) + 1], name);
- if (body)
- macroBody = wxStrcpy(new wxChar[wxStrlen(body) + 1], body);
- else
- macroBody = NULL;
- }
- ~CustomMacro();
+public:
+ wxChar *macroName;
+ wxChar *macroBody;
+ int noArgs;
+ inline CustomMacro(const wxChar *name, int args, wxChar *body)
+ {
+ noArgs = args;
+ macroName = wxStrcpy(new wxChar[wxStrlen(name) + 1], name);
+ if (body)
+ macroBody = wxStrcpy(new wxChar[wxStrlen(body) + 1], body);
+ else
+ macroBody = NULL;
+ }
+ virtual ~CustomMacro();
};
-bool ReadCustomMacros(wxChar *filename);
+bool ReadCustomMacros(const wxString& filename);
void ShowCustomMacros(void);
CustomMacro *FindCustomMacro(wxChar *name);
wxChar *ParseMultifieldString(wxChar *s, int *pos);
unsigned int blue;
ColourTableEntry(const wxChar *theName, unsigned int r, unsigned int g, unsigned int b);
- ~ColourTableEntry(void);
+ virtual ~ColourTableEntry(void);
};
extern wxList ColourTable;
#define ltTOPLEVEL 15000
#define ltCUSTOM_MACRO 15001
#define ltSOLO_BLOCK 15002
-
-
-