]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/richtextstylesheet.tex
typo
[wxWidgets.git] / docs / latex / wx / richtextstylesheet.tex
CommitLineData
5f35b46a
JS
1\section{\class{wxRichTextStyleSheet}}\label{wxrichtextstylesheet}
2
3A style sheet contains named paragraph and character styles that make it
4easy for a user to apply combinations of attributes to a \helpref{wxRichTextCtrl}{wxrichtextctrl}.
5
6You can use a \helpref{wxRichTextStyleListBox}{wxrichtextstylelistbox} in your
7user interface to show available styles to the user, and allow application
8of styles to the control.
9
10\wxheading{Derived from}
11
12\helpref{wxObject}{wxobject}
13
14\wxheading{Include files}
15
16<wx/richtext/richtextstyles.h>
17
a7af285d
VZ
18\wxheading{Library}
19
20\helpref{wxRichtext}{librarieslist}
21
5f35b46a
JS
22\wxheading{Data structures}
23
24\latexignore{\rtfignore{\wxheading{Members}}}
25
26\membersection{wxRichTextStyleSheet::wxRichTextStyleSheet}\label{wxrichtextstylesheetwxrichtextstylesheet}
27
28\func{}{wxRichTextStyleSheet}{\void}
29
30Constructor.
31
32\membersection{wxRichTextStyleSheet::\destruct{wxRichTextStyleSheet}}\label{wxrichtextstylesheetdtor}
33
34\func{}{\destruct{wxRichTextStyleSheet}}{\void}
35
36Destructor.
37
38\membersection{wxRichTextStyleSheet::AddCharacterStyle}\label{wxrichtextstylesheetaddcharacterstyle}
39
40\func{bool}{AddCharacterStyle}{\param{wxRichTextCharacterStyleDefinition* }{def}}
41
42Adds a definition to the character style list.
43
d2d0adc7
JS
44\membersection{wxRichTextStyleSheet::AddListStyle}\label{wxrichtextstylesheetaddliststyle}
45
46\func{bool}{AddListStyle}{\param{wxRichTextListStyleDefinition* }{def}}
47
48Adds a definition to the list style list.
49
5f35b46a
JS
50\membersection{wxRichTextStyleSheet::AddParagraphStyle}\label{wxrichtextstylesheetaddparagraphstyle}
51
52\func{bool}{AddParagraphStyle}{\param{wxRichTextParagraphStyleDefinition* }{def}}
53
54Adds a definition to the paragraph style list.
55
336d8ae9
VZ
56\membersection{wxRichTextStyleSheet::AddStyle}\label{wxrichtextstylesheetaddstyle}
57
58\func{bool}{AddStyle}{\param{wxRichTextStyleDefinition* }{def}}
59
60Adds a definition to the appropriate style list.
61
5f35b46a
JS
62\membersection{wxRichTextStyleSheet::DeleteStyles}\label{wxrichtextstylesheetdeletestyles}
63
64\func{void}{DeleteStyles}{\void}
65
66Deletes all styles.
67
68\membersection{wxRichTextStyleSheet::FindCharacterStyle}\label{wxrichtextstylesheetfindcharacterstyle}
69
70\constfunc{wxRichTextCharacterStyleDefinition*}{FindCharacterStyle}{\param{const wxString\& }{name}}
71
72Finds a character definition by name.
73
d2d0adc7
JS
74\membersection{wxRichTextStyleSheet::FindListStyle}\label{wxrichtextstylesheetfindliststyle}
75
76\constfunc{wxRichTextListStyleDefinition*}{FindListStyle}{\param{const wxString\& }{name}}
77
78Finds a list definition by name.
79
5f35b46a
JS
80\membersection{wxRichTextStyleSheet::FindParagraphStyle}\label{wxrichtextstylesheetfindparagraphstyle}
81
82\constfunc{wxRichTextParagraphStyleDefinition*}{FindParagraphStyle}{\param{const wxString\& }{name}}
83
84Finds a paragraph definition by name.
85
336d8ae9
VZ
86\membersection{wxRichTextStyleSheet::FindStyle}\label{wxrichtextstylesheetfindstyle}
87
88\constfunc{wxRichTextStyleDefinition*}{FindStyle}{\param{const wxString\& }{name}}
89
90Finds a style definition by name.
91
5f35b46a
JS
92\membersection{wxRichTextStyleSheet::GetCharacterStyle}\label{wxrichtextstylesheetgetcharacterstyle}
93
94\constfunc{wxRichTextCharacterStyleDefinition*}{GetCharacterStyle}{\param{size\_t }{n}}
95
96Returns the {\it n}th character style.
97
98\membersection{wxRichTextStyleSheet::GetCharacterStyleCount}\label{wxrichtextstylesheetgetcharacterstylecount}
99
100\constfunc{size\_t}{GetCharacterStyleCount}{\void}
101
102Returns the number of character styles.
103
1f65137f
JS
104\membersection{wxRichTextStyleSheet::GetDescription}\label{wxrichtextstylesheetgetdescription}
105
106\constfunc{const wxString\&}{GetDescription}{\void}
107
108Returns the style sheet's description.
109
d2d0adc7
JS
110\membersection{wxRichTextStyleSheet::GetListStyle}\label{wxrichtextstylesheetgetliststyle}
111
112\constfunc{wxRichTextListStyleDefinition*}{GetListStyle}{\param{size\_t }{n}}
113
114Returns the {\it n}th list style.
115
116\membersection{wxRichTextStyleSheet::GetListStyleCount}\label{wxrichtextstylesheetgetliststylecount}
117
118\constfunc{size\_t}{GetListStyleCount}{\void}
119
120Returns the number of list styles.
121
1f65137f
JS
122\membersection{wxRichTextStyleSheet::GetName}\label{wxrichtextstylesheetgetname}
123
124\constfunc{const wxString\&}{GetName}{\void}
125
126Returns the style sheet's name.
127
5f35b46a
JS
128\membersection{wxRichTextStyleSheet::GetParagraphStyle}\label{wxrichtextstylesheetgetparagraphstyle}
129
130\constfunc{wxRichTextParagraphStyleDefinition*}{GetParagraphStyle}{\param{size\_t }{n}}
131
132Returns the {\it n}th paragraph style.
133
134\membersection{wxRichTextStyleSheet::GetParagraphStyleCount}\label{wxrichtextstylesheetgetparagraphstylecount}
135
136\constfunc{size\_t}{GetParagraphStyleCount}{\void}
137
138Returns the number of paragraph styles.
139
5f35b46a
JS
140\membersection{wxRichTextStyleSheet::RemoveCharacterStyle}\label{wxrichtextstylesheetremovecharacterstyle}
141
142\func{bool}{RemoveCharacterStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
143
144Removes a character style.
145
d2d0adc7
JS
146\membersection{wxRichTextStyleSheet::RemoveListStyle}\label{wxrichtextstylesheetremoveliststyle}
147
148\func{bool}{RemoveListStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
149
150Removes a list style.
151
5f35b46a
JS
152\membersection{wxRichTextStyleSheet::RemoveParagraphStyle}\label{wxrichtextstylesheetremoveparagraphstyle}
153
154\func{bool}{RemoveParagraphStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
155
156Removes a paragraph style.
62a268cc 157
336d8ae9
VZ
158\membersection{wxRichTextStyleSheet::RemoveStyle}\label{wxrichtextstylesheetremovestyle}
159
160\func{bool}{RemoveStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
161
162Removes a style.
163
1f65137f
JS
164\membersection{wxRichTextStyleSheet::SetDescription}\label{wxrichtextstylesheetsetdescription}
165
166\func{void}{SetDescription}{\param{const wxString\& }{descr}}
167
168Sets the style sheet's description.
169
170\membersection{wxRichTextStyleSheet::SetName}\label{wxrichtextstylesheetsetname}
171
172\func{void}{SetName}{\param{const wxString\& }{name}}
173
174Sets the style sheet's name.
175