1 \section{\class{wxRichTextStyleSheet
}}\label{wxrichtextstylesheet
}
3 A style sheet contains named paragraph and character styles that make it
4 easy for a user to apply combinations of attributes to a
\helpref{wxRichTextCtrl
}{wxrichtextctrl
}.
6 You can use a
\helpref{wxRichTextStyleListBox
}{wxrichtextstylelistbox
} in your
7 user interface to show available styles to the user, and allow application
8 of styles to the control.
10 \wxheading{Derived from
}
12 \helpref{wxObject
}{wxobject
}
14 \wxheading{Include files
}
16 <wx/richtext/richtextstyles.h>
18 \wxheading{Data structures
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxRichTextStyleSheet::wxRichTextStyleSheet
}\label{wxrichtextstylesheetwxrichtextstylesheet
}
24 \func{}{wxRichTextStyleSheet
}{\void}
28 \membersection{wxRichTextStyleSheet::
\destruct{wxRichTextStyleSheet
}}\label{wxrichtextstylesheetdtor
}
30 \func{}{\destruct{wxRichTextStyleSheet
}}{\void}
34 \membersection{wxRichTextStyleSheet::AddCharacterStyle
}\label{wxrichtextstylesheetaddcharacterstyle
}
36 \func{bool
}{AddCharacterStyle
}{\param{wxRichTextCharacterStyleDefinition*
}{def
}}
38 Adds a definition to the character style list.
40 \membersection{wxRichTextStyleSheet::AddListStyle
}\label{wxrichtextstylesheetaddliststyle
}
42 \func{bool
}{AddListStyle
}{\param{wxRichTextListStyleDefinition*
}{def
}}
44 Adds a definition to the list style list.
46 \membersection{wxRichTextStyleSheet::AddParagraphStyle
}\label{wxrichtextstylesheetaddparagraphstyle
}
48 \func{bool
}{AddParagraphStyle
}{\param{wxRichTextParagraphStyleDefinition*
}{def
}}
50 Adds a definition to the paragraph style list.
52 \membersection{wxRichTextStyleSheet::DeleteStyles
}\label{wxrichtextstylesheetdeletestyles
}
54 \func{void
}{DeleteStyles
}{\void}
58 \membersection{wxRichTextStyleSheet::FindCharacterStyle
}\label{wxrichtextstylesheetfindcharacterstyle
}
60 \constfunc{wxRichTextCharacterStyleDefinition*
}{FindCharacterStyle
}{\param{const wxString\&
}{name
}}
62 Finds a character definition by name.
64 \membersection{wxRichTextStyleSheet::FindListStyle
}\label{wxrichtextstylesheetfindliststyle
}
66 \constfunc{wxRichTextListStyleDefinition*
}{FindListStyle
}{\param{const wxString\&
}{name
}}
68 Finds a list definition by name.
70 \membersection{wxRichTextStyleSheet::FindParagraphStyle
}\label{wxrichtextstylesheetfindparagraphstyle
}
72 \constfunc{wxRichTextParagraphStyleDefinition*
}{FindParagraphStyle
}{\param{const wxString\&
}{name
}}
74 Finds a paragraph definition by name.
76 \membersection{wxRichTextStyleSheet::GetCharacterStyle
}\label{wxrichtextstylesheetgetcharacterstyle
}
78 \constfunc{wxRichTextCharacterStyleDefinition*
}{GetCharacterStyle
}{\param{size
\_t }{n
}}
80 Returns the
{\it n
}th character style.
82 \membersection{wxRichTextStyleSheet::GetCharacterStyleCount
}\label{wxrichtextstylesheetgetcharacterstylecount
}
84 \constfunc{size
\_t}{GetCharacterStyleCount
}{\void}
86 Returns the number of character styles.
88 \membersection{wxRichTextStyleSheet::GetDescription
}\label{wxrichtextstylesheetgetdescription
}
90 \constfunc{const wxString\&
}{GetDescription
}{\void}
92 Returns the style sheet's description.
94 \membersection{wxRichTextStyleSheet::GetListStyle
}\label{wxrichtextstylesheetgetliststyle
}
96 \constfunc{wxRichTextListStyleDefinition*
}{GetListStyle
}{\param{size
\_t }{n
}}
98 Returns the
{\it n
}th list style.
100 \membersection{wxRichTextStyleSheet::GetListStyleCount
}\label{wxrichtextstylesheetgetliststylecount
}
102 \constfunc{size
\_t}{GetListStyleCount
}{\void}
104 Returns the number of list styles.
106 \membersection{wxRichTextStyleSheet::GetName
}\label{wxrichtextstylesheetgetname
}
108 \constfunc{const wxString\&
}{GetName
}{\void}
110 Returns the style sheet's name.
112 \membersection{wxRichTextStyleSheet::GetParagraphStyle
}\label{wxrichtextstylesheetgetparagraphstyle
}
114 \constfunc{wxRichTextParagraphStyleDefinition*
}{GetParagraphStyle
}{\param{size
\_t }{n
}}
116 Returns the
{\it n
}th paragraph style.
118 \membersection{wxRichTextStyleSheet::GetParagraphStyleCount
}\label{wxrichtextstylesheetgetparagraphstylecount
}
120 \constfunc{size
\_t}{GetParagraphStyleCount
}{\void}
122 Returns the number of paragraph styles.
124 \membersection{wxRichTextStyleSheet::Init
}\label{wxrichtextstylesheetinit
}
126 \func{void
}{Init
}{\void}
128 Initialises the style sheet.
130 \membersection{wxRichTextStyleSheet::RemoveCharacterStyle
}\label{wxrichtextstylesheetremovecharacterstyle
}
132 \func{bool
}{RemoveCharacterStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
134 Removes a character style.
136 \membersection{wxRichTextStyleSheet::RemoveListStyle
}\label{wxrichtextstylesheetremoveliststyle
}
138 \func{bool
}{RemoveListStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
140 Removes a list style.
142 \membersection{wxRichTextStyleSheet::RemoveParagraphStyle
}\label{wxrichtextstylesheetremoveparagraphstyle
}
144 \func{bool
}{RemoveParagraphStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
146 Removes a paragraph style.
148 \membersection{wxRichTextStyleSheet::SetDescription
}\label{wxrichtextstylesheetsetdescription
}
150 \func{void
}{SetDescription
}{\param{const wxString\&
}{descr
}}
152 Sets the style sheet's description.
154 \membersection{wxRichTextStyleSheet::SetName
}\label{wxrichtextstylesheetsetname
}
156 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
158 Sets the style sheet's name.