X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11611a6211e902512ea357a0c790c32069a19099..2027c6db5b3a77b1ea97c0395e654644643192ab:/utils/tex2rtf/src/tex2rtf.cpp?ds=sidebyside diff --git a/utils/tex2rtf/src/tex2rtf.cpp b/utils/tex2rtf/src/tex2rtf.cpp index a1d0838110..281acafa0c 100644 --- a/utils/tex2rtf/src/tex2rtf.cpp +++ b/utils/tex2rtf/src/tex2rtf.cpp @@ -44,12 +44,13 @@ #include "tex2any.h" #include "tex2rtf.h" #include "rtfutils.h" +#include "symbols.h" #if (defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)) && !defined(NO_GUI) #include "tex2rtf.xpm" #endif -const float versionNo = 2.0; +const float versionNo = TEX2RTF_VERSION_NUMBER; TexChunk *currentMember = NULL; bool startedSections = FALSE; @@ -329,7 +330,7 @@ bool MyApp::OnInit() if (InputFile) { - sprintf(buf, "Tex2RTF [%s]", FileNameFromPath(InputFile)); + sprintf(buf, "Tex2RTF [%s]", wxFileNameFromPath(InputFile)); frame->SetTitle(buf); } @@ -380,7 +381,7 @@ bool MyApp::OnInit() frame->SetMenuBar(menuBar); frame->textWindow = new wxTextCtrl(frame, -1, "", wxPoint(-1, -1), wxSize(-1, -1), wxTE_READONLY|wxTE_MULTILINE); - (*frame->textWindow) << "Welcome to Julian Smart's LaTeX to RTF converter.\n"; + (*frame->textWindow) << "Welcome to Tex2RTF.\n"; // ShowOptions(); #if wxUSE_HELP @@ -829,7 +830,7 @@ void MyFrame::OnAbout(wxCommandEvent& event) char *platform = ""; #endif #endif - sprintf(buf, "Tex2RTF Version %.2f%s\nLaTeX to RTF, WinHelp, HTML and wxHelp Conversion\n\n(c) Julian Smart 1999", versionNo, platform); + sprintf(buf, "Tex2RTF Version %.2f%s\nLaTeX to RTF, WinHelp, and HTML Conversion\n\n(c) Julian Smart, George Tasker and others, 1999-2002", versionNo, platform); wxMessageBox(buf, "About Tex2RTF"); } @@ -966,7 +967,7 @@ bool Go(void) if (InputFile && OutputFile) { - if (!FileExists(InputFile)) + if (!wxFileExists(InputFile)) { OnError("Cannot open input file!"); TexCleanUp();