// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.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;
if (macroId != ltSECTIONSTAR)
sectionNo ++;
-
+
SetCurrentOutputs(Chapters, Sections);
long id1 = NewBlockId();
currentBlockId = NewBlockId();
if (start)
{
wxChar *sec = NULL;
-
+
wxChar *refName = GetArgData();
if (refName)
{
wxChar *label = GetArgData();
hyperLinks.Append(currentBlockId, (wxObject *)copystring(label));
}
-
+
return false;
}
break;
{
xlpBlockId = 0;
- if (InputFile && OutputFile)
+ if (!InputFile.empty() && !OutputFile.empty())
{
Contents = wxFopen(TmpContentsName, _T("w"));
Chapters = wxFopen(_T("chapters.xlp"), _T("w"));
}
return false;
}
-