X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44219ff04fedc5ede9842494fa29fbcb1fec04b0..5b464d6bbd088e122bca53f2a4a4ce1f09378de4:/include/wx/richtext/richtextprint.h?ds=sidebyside diff --git a/include/wx/richtext/richtextprint.h b/include/wx/richtext/richtextprint.h index 69d1a43e2e..3d43a590a2 100644 --- a/include/wx/richtext/richtextprint.h +++ b/include/wx/richtext/richtextprint.h @@ -26,7 +26,7 @@ enum wxRichTextOddEvenPage { wxRICHTEXT_PAGE_ODD, wxRICHTEXT_PAGE_EVEN, - wxRICHTEXT_PAGE_ALL, + wxRICHTEXT_PAGE_ALL }; // Header/footer text locations @@ -44,7 +44,7 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextHeaderFooterData: public wxObject { public: wxRichTextHeaderFooterData() { Init(); } - wxRichTextHeaderFooterData(const wxRichTextHeaderFooterData& data) { Copy(data); } + wxRichTextHeaderFooterData(const wxRichTextHeaderFooterData& data): wxObject() { Copy(data); } /// Initialise void Init() { m_headerMargin = 20; m_footerMargin = 20; m_showOnFirstPage = true; } @@ -187,12 +187,22 @@ public: wxString GetFooterText(wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE) const; /// Show header/footer on first page, or not - bool SetShowOnFirstPage(bool show) { m_headerFooterData.SetShowOnFirstPage(show); } + void SetShowOnFirstPage(bool show) { m_headerFooterData.SetShowOnFirstPage(show); } + + /// Set the font + void SetHeaderFooterFont(const wxFont& font) { m_headerFooterData.SetFont(font); } + + /// Set the colour + void SetHeaderFooterTextColour(const wxColour& font) { m_headerFooterData.SetTextColour(font); } /// Get print and page setup data wxPrintData *GetPrintData(); wxPageSetupDialogData *GetPageSetupData() { return m_pageSetupData; } + /// Set print and page setup data + void SetPrintData(const wxPrintData& printData); + void SetPageSetupData(const wxPageSetupData& pageSetupData); + /// Set the rich text buffer pointer, deleting the existing object if present void SetRichTextBufferPreview(wxRichTextBuffer* buf); wxRichTextBuffer* GetRichTextBufferPreview() const { return m_richTextBufferPreview; }