![]() ![]() ![]() ![]() 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.
|