wxRichTextStyleListBoxThis is a listbox that can display the styles in a wxRichTextStyleSheet, and apply the selection to an associated wxRichTextCtrl. See samples/richtext for an example of how to use it. Derived from Include files <wx/richtext/richtextstyles.h> See also wxRichTextStyleComboCtrl, wxRichTextCtrl overview Members
wxRichTextStyleListBox::wxRichTextStyleListBox
wxRichTextStyleListBox::wxRichTextStyleListBoxwxRichTextStyleListBox(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0) Constructor.
wxRichTextStyleListBox::~wxRichTextStyleListBox~wxRichTextStyleListBox() Destructor.
wxRichTextStyleListBox::ApplyStylevoid ApplyStyle(int i) Applies the ith style to the associated rich text control.
wxRichTextStyleListBox::ConvertTenthsMMToPixelsint ConvertTenthsMMToPixels(wxDC& dc, int units) const Converts units in tenths of a millimetre to device units.
wxRichTextStyleListBox::CreateHTMLwxString CreateHTML(wxRichTextStyleDefinition* def) const Creates a suitable HTML fragment for a definition.
wxRichTextStyleListBox::GetApplyOnSelectionbool GetApplyOnSelection() const If the return value is true, clicking on a style name in the list will immediately apply the style to the associated rich text control.
wxRichTextStyleListBox::GetRichTextCtrlwxRichTextCtrl* GetRichTextCtrl() const Returns the wxRichTextCtrl associated with this listbox.
wxRichTextStyleListBox::GetStylewxRichTextStyleDefinition* GetStyle(size_t i) const Gets a style for a listbox index.
wxRichTextStyleListBox::GetStyleSheetwxRichTextStyleSheet* GetStyleSheet() const Returns the style sheet associated with this listbox.
wxRichTextStyleListBox::GetStyleTypewxRichTextStyleListBox::wxRichTextStyleType GetStyleType() const Returns the type of style to show in the list box.
wxRichTextStyleListBox::OnGetItemwxString OnGetItem(size_t n) const Returns the HTML for this item.
wxRichTextStyleListBox::OnLeftDownvoid OnLeftDown(wxMouseEvent& event) Implements left click behaviour, applying the clicked style to the wxRichTextCtrl.
wxRichTextStyleListBox::OnSelectvoid OnSelect(wxCommandEvent& event) Reacts to selection.
wxRichTextStyleListBox::SetApplyOnSelectionvoid SetApplyOnSelection(bool applyOnSelection) If applyOnSelection is true, clicking on a style name in the list will immediately apply the style to the associated rich text control.
wxRichTextStyleListBox::SetRichTextCtrlvoid SetRichTextCtrl(wxRichTextCtrl* ctrl) Associates the listbox with a wxRichTextCtrl.
wxRichTextStyleListBox::SetStyleSheetvoid SetStyleSheet(wxRichTextStyleSheet* styleSheet) Associates the control with a style sheet.
wxRichTextStyleListBox::SetStyleTypevoid SetStyleType(wxRichTextStyleListBox::wxRichTextStyleType styleType) Sets the style type to display. One of wxRichTextStyleListBox::wxRICHTEXT_STYLE_ALL, wxRichTextStyleListBox::wxRICHTEXT_STYLE_PARAGRAPH, wxRichTextStyleListBox::wxRICHTEXT_STYLE_CHARACTER and wxRichTextStyleListBox::wxRICHTEXT_STYLE_LIST.
wxRichTextStyleListBox::UpdateStylesvoid UpdateStyles() Updates the list from the associated style sheet.
|