X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38b130853f3eaf4cc3af9a2f20c0cdc2e2dda20d..05a98b6d5d201eb8edea04b1ab022e4a9a46e9f0:/include/wx/richtext/richtextformatdlg.h diff --git a/include/wx/richtext/richtextformatdlg.h b/include/wx/richtext/richtextformatdlg.h index 2fb9680281..fc23fd3f2a 100644 --- a/include/wx/richtext/richtextformatdlg.h +++ b/include/wx/richtext/richtextformatdlg.h @@ -21,6 +21,8 @@ #if wxUSE_RICHTEXT #include "wx/propdlg.h" +#include "wx/bookctrl.h" + #if wxUSE_HTML #include "wx/htmllbox.h" #endif @@ -28,7 +30,6 @@ #include "wx/richtext/richtextbuffer.h" #include "wx/richtext/richtextstyles.h" -class WXDLLEXPORT wxNotebookEvent; class WXDLLIMPEXP_RICHTEXT wxRichTextFormattingDialog; class WXDLLIMPEXP_CORE wxImageList; @@ -145,7 +146,10 @@ public: /// Apply the styles when a different tab is selected, so the previews are /// up to date - void OnTabChanged(wxNotebookEvent& event); + void OnTabChanged(wxBookCtrlEvent& event); + + /// Respond to help command + void OnHelp(wxCommandEvent& event); /// Set/get image list void SetImageList(wxImageList* imageList) { m_imageList = imageList; } @@ -164,12 +168,16 @@ public: /// Helper for pages to get the style static wxRichTextStyleDefinition* GetDialogStyleDefinition(wxWindow* win); + /// Map book control page index to our page id + void AddPageId(int id) { m_pageIds.Add(id); } + protected: wxImageList* m_imageList; wxTextAttrEx m_attributes; wxRichTextStyleDefinition* m_styleDefinition; wxRichTextStyleSheet* m_styleSheet; + wxArrayInt m_pageIds; // mapping of book control indexes to page ids static wxRichTextFormattingDialogFactory* ms_FormattingDialogFactory; @@ -205,7 +213,6 @@ public: wxRichTextColourSwatchCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); ~wxRichTextColourSwatchCtrl(); - void OnPaint(wxPaintEvent& event); void OnMouseEvent(wxMouseEvent& event); void SetColour(const wxColour& colour) { m_colour = colour; SetBackgroundColour(m_colour); } @@ -278,4 +285,3 @@ private: #endif // _WX_RICHTEXTFORMATDLG_H_ -