X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0646614dadb768dfa17a568bb0193deaf5007e85..020a1653a4ac95d1dd9c9e918a859d6d6d83d3fe:/include/wx/html/helpfrm.h?ds=sidebyside diff --git a/include/wx/html/helpfrm.h b/include/wx/html/helpfrm.h index 64447f5b11..9bcf7574a4 100644 --- a/include/wx/html/helpfrm.h +++ b/include/wx/html/helpfrm.h @@ -43,7 +43,9 @@ #define wxHF_BOOKMARKS 0x0010 #define wxHF_OPENFILES 0x0020 #define wxHF_PRINT 0x0040 -#define wxHF_DEFAULTSTYLE (wxHF_TOOLBAR | wxHF_CONTENTS | wxHF_INDEX | wxHF_SEARCH | wxHF_BOOKMARKS | wxHF_PRINT) +#define wxHF_FLATTOOLBAR 0x0080 +#define wxHF_DEFAULTSTYLE (wxHF_TOOLBAR | wxHF_CONTENTS | wxHF_INDEX | \ + wxHF_SEARCH | wxHF_BOOKMARKS | wxHF_PRINT) // Command IDs : @@ -88,6 +90,7 @@ typedef struct wxHtmlHelpFrameCfg; +class WXDLLEXPORT wxHelpControllerBase; class WXDLLEXPORT wxHtmlHelpFrame : public wxFrame { @@ -95,7 +98,7 @@ class WXDLLEXPORT wxHtmlHelpFrame : public wxFrame public: wxHtmlHelpFrame(wxHtmlHelpData* data = NULL) { Init(data); } - wxHtmlHelpFrame(wxWindow* parent, int wxWindowID, + wxHtmlHelpFrame(wxWindow* parent, wxWindowID wxWindowID, const wxString& title = wxEmptyString, int style = wxHF_DEFAULTSTYLE, wxHtmlHelpData* data = NULL); bool Create(wxWindow* parent, wxWindowID id, const wxString& title = wxEmptyString, @@ -103,13 +106,10 @@ class WXDLLEXPORT wxHtmlHelpFrame : public wxFrame ~wxHtmlHelpFrame(); wxHtmlHelpData* GetData() { return m_Data; } + wxHelpControllerBase* GetController() const { return m_helpController; } + void SetController(wxHelpControllerBase* controller) { m_helpController = controller; } - void SetTitleFormat(const wxString& format) - { - if (m_HtmlWin) - m_HtmlWin->SetRelatedFrame(this, format); - m_TitleFormat = format; - } + void SetTitleFormat(const wxString& format); // Sets format of title of the frame. Must contain exactly one "%s" // (for title of displayed HTML page) @@ -206,7 +206,6 @@ class WXDLLEXPORT wxHtmlHelpFrame : public wxFrame wxSplitterWindow *m_Splitter; wxNotebook *m_NavigPan; wxTreeCtrl *m_ContentsBox; - wxImageList *m_ContentsImageList; wxTextCtrl *m_IndexText; wxButton *m_IndexButton; wxButton *m_IndexButtonAll; @@ -243,6 +242,7 @@ class WXDLLEXPORT wxHtmlHelpFrame : public wxFrame wxHtmlEasyPrinting *m_Printer; #endif wxHashTable *m_PagesHash; + wxHelpControllerBase* m_helpController; DECLARE_EVENT_TABLE() };