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