X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88ac883a0d005437c97a60d8195bd5e4719b1154..8614c467553e7dd8a5b9984683d73c89730b8ead:/include/wx/generic/helphtml.h diff --git a/include/wx/generic/helphtml.h b/include/wx/generic/helphtml.h index dc16448f21..6bf25dff3e 100644 --- a/include/wx/generic/helphtml.h +++ b/include/wx/generic/helphtml.h @@ -16,11 +16,16 @@ #endif #include "wx/helpbase.h" +#include "wx/frame.h" /// Name for map file. #define WXEXTHELP_MAPFILE "wxhelp.map" /// Path separator. +#ifdef __WXMSW__ +#define WXEXTHELP_SEPARATOR '\\' +#else #define WXEXTHELP_SEPARATOR '/' +#endif /// Maximum line length in map file. #define WXEXTHELP_BUFLEN 512 /// Character introducing comments/documentation field in map file. @@ -114,6 +119,23 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase) /// Call the browser using a relative URL. virtual bool DisplayHelp(wxString const &) = 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. wxString m_MapFile;