wxRichTextStyleOrganiserDialogThis class shows a style sheet and allows the user to edit, add and remove styles. It can also be used as a style browser, for example if the application is not using a permanent wxRichTextStyleComboCtrl or wxRichTextStyleListCtrl to present styles. Derived from Include files <wx/richtext/richtextstyledlg.h> Members
wxRichTextStyleOrganiserDialog::wxRichTextStyleOrganiserDialog
wxRichTextStyleOrganiserDialog::wxRichTextStyleOrganiserDialogwxRichTextStyleOrganiserDialog(int flags, wxRichTextStyleSheet* sheet, wxRichTextCtrl* ctrl, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = _("Style Organiser"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX) wxRichTextStyleOrganiserDialog() Constructors. To create a dialog, pass a bitlist of flags (see below), a style sheet, a text control to apply a selected style to (or NULL), followed by the usual window parameters. To specify the operations available to the user, pass a combination of these values to flags:
The following flags determine what will be displayed in the style list:
The following symbols define commonly-used combinations of flags:
wxRichTextStyleOrganiserDialog::ApplyStylebool ApplyStyle(wxRichTextCtrl* ctrl = NULL) Applies the selected style to selection in the given control or the control passed to the constructor.
wxRichTextStyleOrganiserDialog::Createbool Create(int flags, wxRichTextStyleSheet* sheet, wxRichTextCtrl* ctrl, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = _("Style Organiser"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX) Creates the dialog. See wxRichTextStyleOrganiserDialog::wxRichTextStyleOrganiserDialogwxrichtextstyleorganiserdialogwxrichtextstyleorganiserdialog for details.
wxRichTextStyleOrganiserDialog::GetFlagsint GetFlags() const Returns the flags used to control the interface presented to the user.
wxRichTextStyleOrganiserDialog::GetRestartNumberingbool GetRestartNumbering() const Returns true if the user has opted to restart numbering.
wxRichTextStyleOrganiserDialog::GetRichTextCtrlwxRichTextCtrl* GetRichTextCtrl() const Returns the associated rich text control (if any).
wxRichTextStyleOrganiserDialog::GetSelectedStylewxString GetSelectedStyle() const Returns selected style name.
wxRichTextStyleOrganiserDialog::GetSelectedStyleDefinitionwxRichTextStyleDefinition* GetSelectedStyleDefinition() const Returns selected style definition.
wxRichTextStyleOrganiserDialog::GetStyleSheetwxRichTextStyleSheet* GetStyleSheet() const Returns the associated style sheet.
wxRichTextStyleOrganiserDialog::SetFlagsvoid SetFlags(int flags) Sets the flags used to control the interface presented to the user.
wxRichTextStyleOrganiserDialog::SetRestartNumberingvoid SetRestartNumbering(bool restartNumbering) Checks or unchecks the restart numbering checkbox.
wxRichTextStyleOrganiserDialog::SetRichTextCtrlvoid SetRichTextCtrl(wxRichTextCtrl* ctrl) Sets the control to be associated with the dialog, for the purposes of applying a style to the selection.
wxRichTextStyleOrganiserDialog::SetShowToolTipsvoid SetShowToolTips(bool show) Determines whether tooltips will be shown.
wxRichTextStyleOrganiserDialog::SetStyleSheetvoid SetStyleSheet(wxRichTextStyleSheet* sheet) Sets the associated style sheet.
|