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>
20 \helpref{wxRichtext
}{librarieslist
}
22 \wxheading{Data structures
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxRichTextStyleSheet::wxRichTextStyleSheet
}\label{wxrichtextstylesheetwxrichtextstylesheet
}
28 \func{}{wxRichTextStyleSheet
}{\void}
32 \membersection{wxRichTextStyleSheet::
\destruct{wxRichTextStyleSheet
}}\label{wxrichtextstylesheetdtor
}
34 \func{}{\destruct{wxRichTextStyleSheet
}}{\void}
38 \membersection{wxRichTextStyleSheet::AddCharacterStyle
}\label{wxrichtextstylesheetaddcharacterstyle
}
40 \func{bool
}{AddCharacterStyle
}{\param{wxRichTextCharacterStyleDefinition*
}{def
}}
42 Adds a definition to the character style list.
44 \membersection{wxRichTextStyleSheet::AddListStyle
}\label{wxrichtextstylesheetaddliststyle
}
46 \func{bool
}{AddListStyle
}{\param{wxRichTextListStyleDefinition*
}{def
}}
48 Adds a definition to the list style list.
50 \membersection{wxRichTextStyleSheet::AddParagraphStyle
}\label{wxrichtextstylesheetaddparagraphstyle
}
52 \func{bool
}{AddParagraphStyle
}{\param{wxRichTextParagraphStyleDefinition*
}{def
}}
54 Adds a definition to the paragraph style list.
56 \membersection{wxRichTextStyleSheet::AddStyle
}\label{wxrichtextstylesheetaddstyle
}
58 \func{bool
}{AddStyle
}{\param{wxRichTextStyleDefinition*
}{def
}}
60 Adds a definition to the appropriate style list.
62 \membersection{wxRichTextStyleSheet::DeleteStyles
}\label{wxrichtextstylesheetdeletestyles
}
64 \func{void
}{DeleteStyles
}{\void}
68 \membersection{wxRichTextStyleSheet::FindCharacterStyle
}\label{wxrichtextstylesheetfindcharacterstyle
}
70 \constfunc{wxRichTextCharacterStyleDefinition*
}{FindCharacterStyle
}{\param{const wxString\&
}{name
}}
72 Finds a character definition by name.
74 \membersection{wxRichTextStyleSheet::FindListStyle
}\label{wxrichtextstylesheetfindliststyle
}
76 \constfunc{wxRichTextListStyleDefinition*
}{FindListStyle
}{\param{const wxString\&
}{name
}}
78 Finds a list definition by name.
80 \membersection{wxRichTextStyleSheet::FindParagraphStyle
}\label{wxrichtextstylesheetfindparagraphstyle
}
82 \constfunc{wxRichTextParagraphStyleDefinition*
}{FindParagraphStyle
}{\param{const wxString\&
}{name
}}
84 Finds a paragraph definition by name.
86 \membersection{wxRichTextStyleSheet::FindStyle
}\label{wxrichtextstylesheetfindstyle
}
88 \constfunc{wxRichTextStyleDefinition*
}{FindStyle
}{\param{const wxString\&
}{name
}}
90 Finds a style definition by name.
92 \membersection{wxRichTextStyleSheet::GetCharacterStyle
}\label{wxrichtextstylesheetgetcharacterstyle
}
94 \constfunc{wxRichTextCharacterStyleDefinition*
}{GetCharacterStyle
}{\param{size
\_t }{n
}}
96 Returns the
{\it n
}th character style.
98 \membersection{wxRichTextStyleSheet::GetCharacterStyleCount
}\label{wxrichtextstylesheetgetcharacterstylecount
}
100 \constfunc{size
\_t}{GetCharacterStyleCount
}{\void}
102 Returns the number of character styles.
104 \membersection{wxRichTextStyleSheet::GetDescription
}\label{wxrichtextstylesheetgetdescription
}
106 \constfunc{const wxString\&
}{GetDescription
}{\void}
108 Returns the style sheet's description.
110 \membersection{wxRichTextStyleSheet::GetListStyle
}\label{wxrichtextstylesheetgetliststyle
}
112 \constfunc{wxRichTextListStyleDefinition*
}{GetListStyle
}{\param{size
\_t }{n
}}
114 Returns the
{\it n
}th list style.
116 \membersection{wxRichTextStyleSheet::GetListStyleCount
}\label{wxrichtextstylesheetgetliststylecount
}
118 \constfunc{size
\_t}{GetListStyleCount
}{\void}
120 Returns the number of list styles.
122 \membersection{wxRichTextStyleSheet::GetName
}\label{wxrichtextstylesheetgetname
}
124 \constfunc{const wxString\&
}{GetName
}{\void}
126 Returns the style sheet's name.
128 \membersection{wxRichTextStyleSheet::GetParagraphStyle
}\label{wxrichtextstylesheetgetparagraphstyle
}
130 \constfunc{wxRichTextParagraphStyleDefinition*
}{GetParagraphStyle
}{\param{size
\_t }{n
}}
132 Returns the
{\it n
}th paragraph style.
134 \membersection{wxRichTextStyleSheet::GetParagraphStyleCount
}\label{wxrichtextstylesheetgetparagraphstylecount
}
136 \constfunc{size
\_t}{GetParagraphStyleCount
}{\void}
138 Returns the number of paragraph styles.
140 \membersection{wxRichTextStyleSheet::RemoveCharacterStyle
}\label{wxrichtextstylesheetremovecharacterstyle
}
142 \func{bool
}{RemoveCharacterStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
144 Removes a character style.
146 \membersection{wxRichTextStyleSheet::RemoveListStyle
}\label{wxrichtextstylesheetremoveliststyle
}
148 \func{bool
}{RemoveListStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
150 Removes a list style.
152 \membersection{wxRichTextStyleSheet::RemoveParagraphStyle
}\label{wxrichtextstylesheetremoveparagraphstyle
}
154 \func{bool
}{RemoveParagraphStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
156 Removes a paragraph style.
158 \membersection{wxRichTextStyleSheet::RemoveStyle
}\label{wxrichtextstylesheetremovestyle
}
160 \func{bool
}{RemoveStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
164 \membersection{wxRichTextStyleSheet::SetDescription
}\label{wxrichtextstylesheetsetdescription
}
166 \func{void
}{SetDescription
}{\param{const wxString\&
}{descr
}}
168 Sets the style sheet's description.
170 \membersection{wxRichTextStyleSheet::SetName
}\label{wxrichtextstylesheetsetname
}
172 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
174 Sets the style sheet's name.