#if wxUSE_RICHTEXT
#include "wx/propdlg.h"
+#include "wx/bookctrl.h"
+
#if wxUSE_HTML
#include "wx/htmllbox.h"
#endif
#include "wx/richtext/richtextbuffer.h"
#include "wx/richtext/richtextstyles.h"
-class WXDLLEXPORT wxNotebookEvent;
class WXDLLIMPEXP_RICHTEXT wxRichTextFormattingDialog;
class WXDLLIMPEXP_CORE wxImageList;
/// 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; }
/// 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;
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); }
#endif
// _WX_RICHTEXTFORMATDLG_H_
-