X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0004982c831f56c65c390fb617711ff52595c2f3..d3fa4bc22e84e3ca4d88cc1772f2d414140a1017:/interface/wx/richtext/richtextformatdlg.h diff --git a/interface/wx/richtext/richtextformatdlg.h b/interface/wx/richtext/richtextformatdlg.h index 3fc735b578..21bf1539b0 100644 --- a/interface/wx/richtext/richtextformatdlg.h +++ b/interface/wx/richtext/richtextformatdlg.h @@ -3,7 +3,7 @@ // Purpose: interface of wxRichTextFormattingDialog* // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -123,6 +123,8 @@ public: class wxRichTextFormattingDialog : public wxPropertySheetDialog { public: + enum { Option_AllowPixelFontSize = 0x0001 }; + /** Default ctor. */ @@ -135,6 +137,10 @@ public: The pages to show. @param parent The dialog's parent. + @param title + The dialog's title. + @param id + The dialog's ID. @param pos The dialog's position. @param sz @@ -142,10 +148,9 @@ public: @param style The dialog's window style. */ - wxRichTextFormattingDialog(long flags, wxWindow* parent, - const wxPoint& pos = wxDefaultPosition, - const wxSize& sz = wxDefaultSize, - long style = wxDEFAULT_DIALOG_STYLE); + wxRichTextFormattingDialog(long flags, wxWindow* parent, const wxString& title = "Formatting", + wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, + const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE); /** Destructor. @@ -163,9 +168,10 @@ public: Creation: see wxRichTextFormattingDialog() "the constructor" for details about the parameters. */ - bool Create(long flags, wxWindow* parent, const wxString& title, - wxWindowID id, const wxPoint& pos = wxDefaultPosition, - const wxSize& sz = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE); + bool Create(long flags, wxWindow* parent, + const wxString& title = wxGetTranslation("Formatting"), wxWindowID id = wxID_ANY, + const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, + long style = wxDEFAULT_DIALOG_STYLE); //@{ /** @@ -223,6 +229,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.