more Unicode fixes for help files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-01-28 16:03:50 +00:00
parent 74de9ed64b
commit aa0ffd1d92
4 changed files with 14 additions and 12 deletions

View File

@ -19,14 +19,10 @@
#ifndef WXEXTHELP_DEFAULTBROWSER
/// Default browser name.
# define WXEXTHELP_DEFAULTBROWSER "netscape"
# define WXEXTHELP_DEFAULTBROWSER _T("netscape")
/// Is default browse a variant of netscape?
# define WXEXTHELP_DEFAULTBROWSER_IS_NETSCAPE TRUE
#endif
/// Name of environment variable to set help browser.
#define WXEXTHELP_ENVVAR_BROWSER "WX_HELPBROWSER"
/// Is browser a netscape browser?
#define WXEXTHELP_ENVVAR_BROWSERISNETSCAPE "WX_HELPBROWSER_NS"
/**
This class implements help via an external browser.

View File

@ -18,6 +18,13 @@
#include "wx/helpbase.h"
#include "wx/frame.h"
/// Path separator.
#ifdef __WXMSW__
#define WXEXTHELP_SEPARATOR _T('\\')
#else
#define WXEXTHELP_SEPARATOR _T('/')
#endif
class WXDLLEXPORT wxExtHelpMapList;

View File

@ -46,6 +46,11 @@
IMPLEMENT_CLASS(wxExtHelpController, wxHTMLHelpControllerBase)
/// Name of environment variable to set help browser.
#define WXEXTHELP_ENVVAR_BROWSER "WX_HELPBROWSER"
/// Is browser a netscape browser?
#define WXEXTHELP_ENVVAR_BROWSERISNETSCAPE "WX_HELPBROWSER_NS"
/**
This class implements help via an external browser.
It requires the name of a directory containing the documentation
@ -140,7 +145,7 @@ wxExtHelpController::DisplayHelp(const wxString &relativeURL)
// cannot use wxFileExists, because it's a link pointing to a
// non-existing location if(wxFileExists(lockfile))
#endif
{
{
long success;
command << m_BrowserName << wxT(" -remote openURL(")
<< wxT("file://") << m_MapFile

View File

@ -50,12 +50,6 @@
/// Name for map file.
#define WXEXTHELP_MAPFILE _T("wxhelp.map")
/// Path separator.
#ifdef __WXMSW__
#define WXEXTHELP_SEPARATOR _T('\\')
#else
#define WXEXTHELP_SEPARATOR _T('/')
#endif
/// Maximum line length in map file.
#define WXEXTHELP_BUFLEN 512
/// Character introducing comments/documentation field in map file.