Use correct help system.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,9 +31,16 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NO_GUI
|
#ifndef NO_GUI
|
||||||
#include "wx/help.h"
|
|
||||||
#include "wx/timer.h"
|
#include "wx/timer.h"
|
||||||
|
#include "wx/help.h"
|
||||||
|
#include "wx/cshelp.h"
|
||||||
|
#include "wx/helphtml.h"
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
#include "wx/msw/helpchm.h"
|
||||||
|
#else
|
||||||
|
#include "wx/html/helpctrl.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif // !NO_GUI
|
||||||
|
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
@@ -78,18 +85,17 @@ extern wxChar *TexTmpBibName; // Temporary bibliography output file name
|
|||||||
extern wxList ColourTable;
|
extern wxList ColourTable;
|
||||||
extern TexChunk *TopLevel;
|
extern TexChunk *TopLevel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if wxUSE_HELP
|
#if wxUSE_HELP
|
||||||
wxHelpController *HelpInstance = NULL;
|
wxHelpControllerBase *HelpInstance = NULL;
|
||||||
#endif // wxUSE_HELP
|
#endif // wxUSE_HELP
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
static wxChar *ipc_buffer = NULL;
|
static wxChar *ipc_buffer = NULL;
|
||||||
static wxChar Tex2RTFLastStatus[100];
|
static wxChar Tex2RTFLastStatus[100];
|
||||||
Tex2RTFServer *TheTex2RTFServer = NULL;
|
Tex2RTFServer *TheTex2RTFServer = NULL;
|
||||||
#endif
|
#endif // __WXMSW__
|
||||||
#endif
|
|
||||||
|
#endif // !NO_GUI
|
||||||
|
|
||||||
wxChar *bulletFile = NULL;
|
wxChar *bulletFile = NULL;
|
||||||
|
|
||||||
@@ -367,7 +373,11 @@ bool MyApp::OnInit()
|
|||||||
// ShowOptions();
|
// ShowOptions();
|
||||||
|
|
||||||
#if wxUSE_HELP
|
#if wxUSE_HELP
|
||||||
HelpInstance = new wxHelpController();
|
#if wxUSE_MS_HTML_HELP && !defined(__WXUNIVERSAL__)
|
||||||
|
HelpInstance = new wxCHMHelpController;
|
||||||
|
#else
|
||||||
|
HelpInstance = new wxHtmlHelpController;
|
||||||
|
#endif
|
||||||
HelpInstance->Initialize(_T("tex2rtf"));
|
HelpInstance->Initialize(_T("tex2rtf"));
|
||||||
#endif // wxUSE_HELP
|
#endif // wxUSE_HELP
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user