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:
@@ -19,14 +19,10 @@
|
|||||||
|
|
||||||
#ifndef WXEXTHELP_DEFAULTBROWSER
|
#ifndef WXEXTHELP_DEFAULTBROWSER
|
||||||
/// Default browser name.
|
/// Default browser name.
|
||||||
# define WXEXTHELP_DEFAULTBROWSER "netscape"
|
# define WXEXTHELP_DEFAULTBROWSER _T("netscape")
|
||||||
/// Is default browse a variant of netscape?
|
/// Is default browse a variant of netscape?
|
||||||
# define WXEXTHELP_DEFAULTBROWSER_IS_NETSCAPE TRUE
|
# define WXEXTHELP_DEFAULTBROWSER_IS_NETSCAPE TRUE
|
||||||
#endif
|
#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.
|
This class implements help via an external browser.
|
||||||
|
@@ -18,6 +18,13 @@
|
|||||||
#include "wx/helpbase.h"
|
#include "wx/helpbase.h"
|
||||||
#include "wx/frame.h"
|
#include "wx/frame.h"
|
||||||
|
|
||||||
|
/// Path separator.
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
#define WXEXTHELP_SEPARATOR _T('\\')
|
||||||
|
#else
|
||||||
|
#define WXEXTHELP_SEPARATOR _T('/')
|
||||||
|
#endif
|
||||||
|
|
||||||
class WXDLLEXPORT wxExtHelpMapList;
|
class WXDLLEXPORT wxExtHelpMapList;
|
||||||
|
|
||||||
|
|
||||||
|
@@ -46,6 +46,11 @@
|
|||||||
|
|
||||||
IMPLEMENT_CLASS(wxExtHelpController, wxHTMLHelpControllerBase)
|
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.
|
This class implements help via an external browser.
|
||||||
It requires the name of a directory containing the documentation
|
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
|
// cannot use wxFileExists, because it's a link pointing to a
|
||||||
// non-existing location if(wxFileExists(lockfile))
|
// non-existing location if(wxFileExists(lockfile))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
long success;
|
long success;
|
||||||
command << m_BrowserName << wxT(" -remote openURL(")
|
command << m_BrowserName << wxT(" -remote openURL(")
|
||||||
<< wxT("file://") << m_MapFile
|
<< wxT("file://") << m_MapFile
|
||||||
|
@@ -50,12 +50,6 @@
|
|||||||
|
|
||||||
/// Name for map file.
|
/// Name for map file.
|
||||||
#define WXEXTHELP_MAPFILE _T("wxhelp.map")
|
#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.
|
/// Maximum line length in map file.
|
||||||
#define WXEXTHELP_BUFLEN 512
|
#define WXEXTHELP_BUFLEN 512
|
||||||
/// Character introducing comments/documentation field in map file.
|
/// Character introducing comments/documentation field in map file.
|
||||||
|
Reference in New Issue
Block a user