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.