Don't include wx/wx.h, use the much smaller set of
required headers instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23569
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
#endif
#include "tex2any.h"
#include "tex2rtf.h"
#include "table.h"
+#if !WXWIN_COMPATIBILITY_2_4
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+#endif
extern wxHashTable TexReferences;
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
#endif
#include <ctype.h>
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
#endif
#include <stdio.h>
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
#endif
#include "tex2any.h"
#include "bmputils.h"
#include "table.h"
+#if !WXWIN_COMPATIBILITY_2_4
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+#endif
+
wxList itemizeStack;
static int indentLevel = 0;
static int forbidParindent = 0; // if > 0, no parindent (e.g. in center environment)
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
#endif
#include "wx/hash.h"
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
#endif
#include <ctype.h>
#include <stdlib.h>
#include <time.h>
+#if !WXWIN_COMPATIBILITY_2_4
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+#endif
+
/*
* Variables accessible from clients
*
/////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
-#include "wx/wx.h"
#include "wx/utils.h"
#include "wx/list.h"
#include "wx/hash.h"
inline CustomMacro(char *name, int args, char *body)
{
noArgs = args;
- macroName = copystring(name);
+ macroName = strcpy(new char[strlen(name) + 1], name);
if (body)
- macroBody = copystring(body);
+ macroBody = strcpy(new char[strlen(body) + 1], body);
else
macroBody = NULL;
}
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
+ #ifndef NO_GUI
+ #include "wx/menu.h"
+ #include "wx/textctrl.h"
+ #include "wx/filedlg.h"
+ #include "wx/msgdlg.h"
+ #endif
#endif
#ifndef NO_GUI
#include "tex2rtf.xpm"
#endif
+#if !WXWIN_COMPATIBILITY_2_4
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+#endif
+
const float versionNo = TEX2RTF_VERSION_NUMBER;
TexChunk *currentMember = NULL;
/////////////////////////////////////////////////////////////////////////////
#ifndef NO_GUI
+#include "wx/app.h"
+#include "wx/frame.h"
+
+class WXDLLEXPORT wxTextCtrl;
+
// Define a new application type
class MyApp: public wxApp
{ public:
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
+ #include "wx/log.h"
#endif
#include "wx/hash.h"
#include <ctype.h>
#include "tex2any.h"
+#if !WXWIN_COMPATIBILITY_2_4
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+static inline void StringToInt (const wxChar *s, int *number)
+{
+ if (s && *s && number)
+ *number = (int) wxStrtol (s, (wxChar **) NULL, 10);
+}
+#endif
+
wxHashTable TexReferences(wxKEY_STRING);
wxList BibList(wxKEY_STRING);
wxStringList CitationList;
#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
#endif
#include "tex2any.h"
#include "tex2rtf.h"
#include <ctype.h>
+#if !WXWIN_COMPATIBILITY_2_4
+static inline wxChar* copystring(const wxChar* s)
+ { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+#endif
+
long currentBlockId = -1;
static TexChunk *descriptionItemArg = NULL;
static int indentLevel = 0;