X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8ebb70d6c40f5ba8db6c24a6537cc65ac48ccd6..931d6a47c32a5b4c283243cb553ce71ee2b535d5:/interface/wx/richtext/richtextformatdlg.h diff --git a/interface/wx/richtext/richtextformatdlg.h b/interface/wx/richtext/richtextformatdlg.h index 21d215d1cc..6eed33888d 100644 --- a/interface/wx/richtext/richtextformatdlg.h +++ b/interface/wx/richtext/richtextformatdlg.h @@ -2,8 +2,7 @@ // Name: richtext/richtextformatdlg.h // Purpose: interface of wxRichTextFormattingDialog* // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -123,6 +122,8 @@ public: class wxRichTextFormattingDialog : public wxPropertySheetDialog { public: + enum { Option_AllowPixelFontSize = 0x0001 }; + /** Default ctor. */ @@ -227,6 +228,23 @@ public: */ void SetAttributes(const wxTextAttr& attr); + /** + Sets the dialog options, determining what the interface presents to the user. + Currently the only option is Option_AllowPixelFontSize. + */ + void SetOptions(int options) { m_options = options; } + + /** + Gets the dialog options, determining what the interface presents to the user. + Currently the only option is Option_AllowPixelFontSize. + */ + int GetOptions() const { return m_options; } + + /** + Returns @true if the given option is present. + */ + bool HasOption(int option) const { return (m_options & option) != 0; } + /** Sets the formatting factory object to be used for customization and page creation.