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.
|