X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88ac883a0d005437c97a60d8195bd5e4719b1154..c17ba76f38f7ef27a8a8f3710727a365e9c23de1:/include/wx/generic/helphtml.h diff --git a/include/wx/generic/helphtml.h b/include/wx/generic/helphtml.h index dc16448f21..8e81689988 100644 --- a/include/wx/generic/helphtml.h +++ b/include/wx/generic/helphtml.h @@ -11,20 +11,21 @@ #if wxUSE_HELP -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) # pragma interface "helphtml.h" #endif #include "wx/helpbase.h" +#include "wx/frame.h" -/// Name for map file. -#define WXEXTHELP_MAPFILE "wxhelp.map" /// Path separator. -#define WXEXTHELP_SEPARATOR '/' -/// Maximum line length in map file. -#define WXEXTHELP_BUFLEN 512 -/// Character introducing comments/documentation field in map file. -#define WXEXTHELP_COMMENTCHAR ';' +#ifdef __WXMSW__ +#define WXEXTHELP_SEPARATOR _T('\\') +#elif defined(__WXMAC__) +#define WXEXTHELP_SEPARATOR _T(':') +#else +#define WXEXTHELP_SEPARATOR _T('/') +#endif class WXDLLEXPORT wxExtHelpMapList; @@ -85,7 +86,7 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase) @file Name of help directory. @return true on success */ - virtual bool LoadFile(const wxString& file = ""); + virtual bool LoadFile(const wxString& file = wxT("")); /** Display list of all help entries. @return true on success @@ -98,6 +99,10 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase) /** Display help for id sectionNo -- identical with DisplaySection(). @return true on success */ + virtual bool DisplaySection(const wxString& section); + /** Display help for URL (using DisplayHelp) or keyword (using KeywordSearch) + @return true on success + */ virtual bool DisplayBlock(long blockNo); /** Search comment/documentation fields in map file and present a list to chose from. @@ -112,7 +117,24 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase) virtual void OnQuit(void); /// Call the browser using a relative URL. - virtual bool DisplayHelp(wxString const &) = 0; + virtual bool DisplayHelp(const wxString &) = 0; + + /// Allows one to override the default settings for the help frame. + virtual void SetFrameParameters(const wxString& WXUNUSED(title), + const wxSize& WXUNUSED(size), + const wxPoint& WXUNUSED(pos) = wxDefaultPosition, + bool WXUNUSED(newFrameEachTime) = FALSE) + { + // does nothing by default + } + /// Obtains the latest settings used by the help frame and the help + /// frame. + virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL, + wxPoint *WXUNUSED(pos) = NULL, + bool *WXUNUSED(newFrameEachTime) = NULL) + { + return (wxFrame*) NULL;// does nothing by default + } protected: /// Filename of currently active map file.