contents up previous next

wxrichtextstyledefinition

this is a base class for paragraph and character styles.

derived from

wxobject

include files

<wx/richtext/richtextstyles.h>

data structures

members

wxrichtextstyledefinition::wxrichtextstyledefinition
wxrichtextstyledefinition::~wxrichtextstyledefinition
wxrichtextstyledefinition::getbasestyle
wxrichtextstyledefinition::getdescription
wxrichtextstyledefinition::getname
wxrichtextstyledefinition::getstyle
wxrichtextstyledefinition::getstylemergedwithbase
wxrichtextstyledefinition::setbasestyle
wxrichtextstyledefinition::setdescription
wxrichtextstyledefinition::setname
wxrichtextstyledefinition::setstyle


wxrichtextstyledefinition::wxrichtextstyledefinition

wxrichtextstyledefinition(const wxstring& name = wxemptystring)

constructor.


wxrichtextstyledefinition::~wxrichtextstyledefinition

~wxrichtextstyledefinition()

destructor.


wxrichtextstyledefinition::getbasestyle

const wxstring& getbasestyle() const

returns the style on which this style is based.


wxrichtextstyledefinition::getdescription

const wxstring& getdescription() const

returns the style's description.


wxrichtextstyledefinition::getname

const wxstring& getname() const

returns the style name.


wxrichtextstyledefinition::getstyle

wxrichtextattr& getstyle()

const wxrichtextattr& getstyle() const

returns the attributes associated with this style.


wxrichtextstyledefinition::getstylemergedwithbase

wxrichtextattr getstylemergedwithbase(wxrichtextstylesheet* sheet) const

returns the style attributes combined with the attributes of the specified base style, if any. this function works recursively.


wxrichtextstyledefinition::setbasestyle

void setbasestyle(const wxstring& name)

sets the name of the style that this style is based on.


wxrichtextstyledefinition::setdescription

void setdescription(const wxstring& descr)

sets the style description.


wxrichtextstyledefinition::setname

void setname(const wxstring& name)

sets the name of the style.


wxrichtextstyledefinition::setstyle

void setstyle(const wxrichtextattr& style)

sets the attributes for this style.