]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/richtextstylesheet.tex
Added newline for PDF RTF
[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
52\membersection{wxRichTextStyleSheet::DeleteStyles}\label{wxrichtextstylesheetdeletestyles}
53
54\func{void}{DeleteStyles}{\void}
55
56Deletes all styles.
57
58\membersection{wxRichTextStyleSheet::FindCharacterStyle}\label{wxrichtextstylesheetfindcharacterstyle}
59
60\constfunc{wxRichTextCharacterStyleDefinition*}{FindCharacterStyle}{\param{const wxString\& }{name}}
61
62Finds a character definition by name.
63
d2d0adc7
JS
64\membersection{wxRichTextStyleSheet::FindListStyle}\label{wxrichtextstylesheetfindliststyle}
65
66\constfunc{wxRichTextListStyleDefinition*}{FindListStyle}{\param{const wxString\& }{name}}
67
68Finds a list definition by name.
69
5f35b46a
JS
70\membersection{wxRichTextStyleSheet::FindParagraphStyle}\label{wxrichtextstylesheetfindparagraphstyle}
71
72\constfunc{wxRichTextParagraphStyleDefinition*}{FindParagraphStyle}{\param{const wxString\& }{name}}
73
74Finds a paragraph definition by name.
75
76\membersection{wxRichTextStyleSheet::GetCharacterStyle}\label{wxrichtextstylesheetgetcharacterstyle}
77
78\constfunc{wxRichTextCharacterStyleDefinition*}{GetCharacterStyle}{\param{size\_t }{n}}
79
80Returns the {\it n}th character style.
81
82\membersection{wxRichTextStyleSheet::GetCharacterStyleCount}\label{wxrichtextstylesheetgetcharacterstylecount}
83
84\constfunc{size\_t}{GetCharacterStyleCount}{\void}
85
86Returns the number of character styles.
87
1f65137f
JS
88\membersection{wxRichTextStyleSheet::GetDescription}\label{wxrichtextstylesheetgetdescription}
89
90\constfunc{const wxString\&}{GetDescription}{\void}
91
92Returns the style sheet's description.
93
d2d0adc7
JS
94\membersection{wxRichTextStyleSheet::GetListStyle}\label{wxrichtextstylesheetgetliststyle}
95
96\constfunc{wxRichTextListStyleDefinition*}{GetListStyle}{\param{size\_t }{n}}
97
98Returns the {\it n}th list style.
99
100\membersection{wxRichTextStyleSheet::GetListStyleCount}\label{wxrichtextstylesheetgetliststylecount}
101
102\constfunc{size\_t}{GetListStyleCount}{\void}
103
104Returns the number of list styles.
105
1f65137f
JS
106\membersection{wxRichTextStyleSheet::GetName}\label{wxrichtextstylesheetgetname}
107
108\constfunc{const wxString\&}{GetName}{\void}
109
110Returns the style sheet's name.
111
5f35b46a
JS
112\membersection{wxRichTextStyleSheet::GetParagraphStyle}\label{wxrichtextstylesheetgetparagraphstyle}
113
114\constfunc{wxRichTextParagraphStyleDefinition*}{GetParagraphStyle}{\param{size\_t }{n}}
115
116Returns the {\it n}th paragraph style.
117
118\membersection{wxRichTextStyleSheet::GetParagraphStyleCount}\label{wxrichtextstylesheetgetparagraphstylecount}
119
120\constfunc{size\_t}{GetParagraphStyleCount}{\void}
121
122Returns the number of paragraph styles.
123
124\membersection{wxRichTextStyleSheet::Init}\label{wxrichtextstylesheetinit}
125
126\func{void}{Init}{\void}
127
128Initialises the style sheet.
129
130\membersection{wxRichTextStyleSheet::RemoveCharacterStyle}\label{wxrichtextstylesheetremovecharacterstyle}
131
132\func{bool}{RemoveCharacterStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
133
134Removes a character style.
135
d2d0adc7
JS
136\membersection{wxRichTextStyleSheet::RemoveListStyle}\label{wxrichtextstylesheetremoveliststyle}
137
138\func{bool}{RemoveListStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
139
140Removes a list style.
141
5f35b46a
JS
142\membersection{wxRichTextStyleSheet::RemoveParagraphStyle}\label{wxrichtextstylesheetremoveparagraphstyle}
143
144\func{bool}{RemoveParagraphStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
145
146Removes a paragraph style.
62a268cc 147
1f65137f
JS
148\membersection{wxRichTextStyleSheet::SetDescription}\label{wxrichtextstylesheetsetdescription}
149
150\func{void}{SetDescription}{\param{const wxString\& }{descr}}
151
152Sets the style sheet's description.
153
154\membersection{wxRichTextStyleSheet::SetName}\label{wxrichtextstylesheetsetname}
155
156\func{void}{SetName}{\param{const wxString\& }{name}}
157
158Sets the style sheet's name.
159