wxRichTextStyleSheetA style sheet contains named paragraph and character styles that make it easy for a user to apply combinations of attributes to a wxRichTextCtrl. You can use a wxRichTextStyleListBox in your user interface to show available styles to the user, and allow application of styles to the control. Derived from Include files <wx/richtext/richtextstyles.h> Data structures Members
wxRichTextStyleSheet::wxRichTextStyleSheet
wxRichTextStyleSheet::wxRichTextStyleSheetwxRichTextStyleSheet() Constructor.
wxRichTextStyleSheet::~wxRichTextStyleSheet~wxRichTextStyleSheet() Destructor.
wxRichTextStyleSheet::AddCharacterStylebool AddCharacterStyle(wxRichTextCharacterStyleDefinition* def) Adds a definition to the character style list.
wxRichTextStyleSheet::AddListStylebool AddListStyle(wxRichTextListStyleDefinition* def) Adds a definition to the list style list.
wxRichTextStyleSheet::AddParagraphStylebool AddParagraphStyle(wxRichTextParagraphStyleDefinition* def) Adds a definition to the paragraph style list.
wxRichTextStyleSheet::AddStylebool AddStyle(wxRichTextStyleDefinition* def) Adds a definition to the appropriate style list.
wxRichTextStyleSheet::DeleteStylesvoid DeleteStyles() Deletes all styles.
wxRichTextStyleSheet::FindCharacterStylewxRichTextCharacterStyleDefinition* FindCharacterStyle(const wxString& name) const Finds a character definition by name.
wxRichTextStyleSheet::FindListStylewxRichTextListStyleDefinition* FindListStyle(const wxString& name) const Finds a list definition by name.
wxRichTextStyleSheet::FindParagraphStylewxRichTextParagraphStyleDefinition* FindParagraphStyle(const wxString& name) const Finds a paragraph definition by name.
wxRichTextStyleSheet::FindStylewxRichTextStyleDefinition* FindStyle(const wxString& name) const Finds a style definition by name.
wxRichTextStyleSheet::GetCharacterStylewxRichTextCharacterStyleDefinition* GetCharacterStyle(size_t n) const Returns the nth character style.
wxRichTextStyleSheet::GetCharacterStyleCountsize_t GetCharacterStyleCount() const Returns the number of character styles.
wxRichTextStyleSheet::GetDescriptionconst wxString& GetDescription() const Returns the style sheet's description.
wxRichTextStyleSheet::GetListStylewxRichTextListStyleDefinition* GetListStyle(size_t n) const Returns the nth list style.
wxRichTextStyleSheet::GetListStyleCountsize_t GetListStyleCount() const Returns the number of list styles.
wxRichTextStyleSheet::GetNameconst wxString& GetName() const Returns the style sheet's name.
wxRichTextStyleSheet::GetParagraphStylewxRichTextParagraphStyleDefinition* GetParagraphStyle(size_t n) const Returns the nth paragraph style.
wxRichTextStyleSheet::GetParagraphStyleCountsize_t GetParagraphStyleCount() const Returns the number of paragraph styles.
wxRichTextStyleSheet::RemoveCharacterStylebool RemoveCharacterStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false) Removes a character style.
wxRichTextStyleSheet::RemoveListStylebool RemoveListStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false) Removes a list style.
wxRichTextStyleSheet::RemoveParagraphStylebool RemoveParagraphStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false) Removes a paragraph style.
wxRichTextStyleSheet::RemoveStylebool RemoveStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false) Removes a style.
wxRichTextStyleSheet::SetDescriptionvoid SetDescription(const wxString& descr) Sets the style sheet's description.
wxRichTextStyleSheet::SetNamevoid SetName(const wxString& name) Sets the style sheet's name.
|