]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/richtextstylesheet.tex
removed erroneous spaces from wxTo/FromString() documentation
[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
18\wxheading{Data structures}
19
20\latexignore{\rtfignore{\wxheading{Members}}}
21
22\membersection{wxRichTextStyleSheet::wxRichTextStyleSheet}\label{wxrichtextstylesheetwxrichtextstylesheet}
23
24\func{}{wxRichTextStyleSheet}{\void}
25
26Constructor.
27
28\membersection{wxRichTextStyleSheet::\destruct{wxRichTextStyleSheet}}\label{wxrichtextstylesheetdtor}
29
30\func{}{\destruct{wxRichTextStyleSheet}}{\void}
31
32Destructor.
33
34\membersection{wxRichTextStyleSheet::AddCharacterStyle}\label{wxrichtextstylesheetaddcharacterstyle}
35
36\func{bool}{AddCharacterStyle}{\param{wxRichTextCharacterStyleDefinition* }{def}}
37
38Adds a definition to the character style list.
39
d2d0adc7
JS
40\membersection{wxRichTextStyleSheet::AddListStyle}\label{wxrichtextstylesheetaddliststyle}
41
42\func{bool}{AddListStyle}{\param{wxRichTextListStyleDefinition* }{def}}
43
44Adds a definition to the list style list.
45
5f35b46a
JS
46\membersection{wxRichTextStyleSheet::AddParagraphStyle}\label{wxrichtextstylesheetaddparagraphstyle}
47
48\func{bool}{AddParagraphStyle}{\param{wxRichTextParagraphStyleDefinition* }{def}}
49
50Adds a definition to the paragraph style list.
51
336d8ae9
VZ
52\membersection{wxRichTextStyleSheet::AddStyle}\label{wxrichtextstylesheetaddstyle}
53
54\func{bool}{AddStyle}{\param{wxRichTextStyleDefinition* }{def}}
55
56Adds a definition to the appropriate style list.
57
5f35b46a
JS
58\membersection{wxRichTextStyleSheet::DeleteStyles}\label{wxrichtextstylesheetdeletestyles}
59
60\func{void}{DeleteStyles}{\void}
61
62Deletes all styles.
63
64\membersection{wxRichTextStyleSheet::FindCharacterStyle}\label{wxrichtextstylesheetfindcharacterstyle}
65
66\constfunc{wxRichTextCharacterStyleDefinition*}{FindCharacterStyle}{\param{const wxString\& }{name}}
67
68Finds a character definition by name.
69
d2d0adc7
JS
70\membersection{wxRichTextStyleSheet::FindListStyle}\label{wxrichtextstylesheetfindliststyle}
71
72\constfunc{wxRichTextListStyleDefinition*}{FindListStyle}{\param{const wxString\& }{name}}
73
74Finds a list definition by name.
75
5f35b46a
JS
76\membersection{wxRichTextStyleSheet::FindParagraphStyle}\label{wxrichtextstylesheetfindparagraphstyle}
77
78\constfunc{wxRichTextParagraphStyleDefinition*}{FindParagraphStyle}{\param{const wxString\& }{name}}
79
80Finds a paragraph definition by name.
81
336d8ae9
VZ
82\membersection{wxRichTextStyleSheet::FindStyle}\label{wxrichtextstylesheetfindstyle}
83
84\constfunc{wxRichTextStyleDefinition*}{FindStyle}{\param{const wxString\& }{name}}
85
86Finds a style definition by name.
87
5f35b46a
JS
88\membersection{wxRichTextStyleSheet::GetCharacterStyle}\label{wxrichtextstylesheetgetcharacterstyle}
89
90\constfunc{wxRichTextCharacterStyleDefinition*}{GetCharacterStyle}{\param{size\_t }{n}}
91
92Returns the {\it n}th character style.
93
94\membersection{wxRichTextStyleSheet::GetCharacterStyleCount}\label{wxrichtextstylesheetgetcharacterstylecount}
95
96\constfunc{size\_t}{GetCharacterStyleCount}{\void}
97
98Returns the number of character styles.
99
1f65137f
JS
100\membersection{wxRichTextStyleSheet::GetDescription}\label{wxrichtextstylesheetgetdescription}
101
102\constfunc{const wxString\&}{GetDescription}{\void}
103
104Returns the style sheet's description.
105
d2d0adc7
JS
106\membersection{wxRichTextStyleSheet::GetListStyle}\label{wxrichtextstylesheetgetliststyle}
107
108\constfunc{wxRichTextListStyleDefinition*}{GetListStyle}{\param{size\_t }{n}}
109
110Returns the {\it n}th list style.
111
112\membersection{wxRichTextStyleSheet::GetListStyleCount}\label{wxrichtextstylesheetgetliststylecount}
113
114\constfunc{size\_t}{GetListStyleCount}{\void}
115
116Returns the number of list styles.
117
1f65137f
JS
118\membersection{wxRichTextStyleSheet::GetName}\label{wxrichtextstylesheetgetname}
119
120\constfunc{const wxString\&}{GetName}{\void}
121
122Returns the style sheet's name.
123
5f35b46a
JS
124\membersection{wxRichTextStyleSheet::GetParagraphStyle}\label{wxrichtextstylesheetgetparagraphstyle}
125
126\constfunc{wxRichTextParagraphStyleDefinition*}{GetParagraphStyle}{\param{size\_t }{n}}
127
128Returns the {\it n}th paragraph style.
129
130\membersection{wxRichTextStyleSheet::GetParagraphStyleCount}\label{wxrichtextstylesheetgetparagraphstylecount}
131
132\constfunc{size\_t}{GetParagraphStyleCount}{\void}
133
134Returns the number of paragraph styles.
135
5f35b46a
JS
136\membersection{wxRichTextStyleSheet::RemoveCharacterStyle}\label{wxrichtextstylesheetremovecharacterstyle}
137
138\func{bool}{RemoveCharacterStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
139
140Removes a character style.
141
d2d0adc7
JS
142\membersection{wxRichTextStyleSheet::RemoveListStyle}\label{wxrichtextstylesheetremoveliststyle}
143
144\func{bool}{RemoveListStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
145
146Removes a list style.
147
5f35b46a
JS
148\membersection{wxRichTextStyleSheet::RemoveParagraphStyle}\label{wxrichtextstylesheetremoveparagraphstyle}
149
150\func{bool}{RemoveParagraphStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
151
152Removes a paragraph style.
62a268cc 153
336d8ae9
VZ
154\membersection{wxRichTextStyleSheet::RemoveStyle}\label{wxrichtextstylesheetremovestyle}
155
156\func{bool}{RemoveStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
157
158Removes a style.
159
1f65137f
JS
160\membersection{wxRichTextStyleSheet::SetDescription}\label{wxrichtextstylesheetsetdescription}
161
162\func{void}{SetDescription}{\param{const wxString\& }{descr}}
163
164Sets the style sheet's description.
165
166\membersection{wxRichTextStyleSheet::SetName}\label{wxrichtextstylesheetsetname}
167
168\func{void}{SetName}{\param{const wxString\& }{name}}
169
170Sets the style sheet's name.
171