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::DeleteStyles
}\label{wxrichtextstylesheetdeletestyles
}
54 \func{void
}{DeleteStyles
}{\void}
58 \membersection{wxRichTextStyleSheet::FindCharacterStyle
}\label{wxrichtextstylesheetfindcharacterstyle
}
60 \constfunc{wxRichTextCharacterStyleDefinition*
}{FindCharacterStyle
}{\param{const wxString\&
}{name
}}
62 Finds a character definition by name.
64 \membersection{wxRichTextStyleSheet::FindListStyle
}\label{wxrichtextstylesheetfindliststyle
}
66 \constfunc{wxRichTextListStyleDefinition*
}{FindListStyle
}{\param{const wxString\&
}{name
}}
68 Finds a list definition by name.
70 \membersection{wxRichTextStyleSheet::FindParagraphStyle
}\label{wxrichtextstylesheetfindparagraphstyle
}
72 \constfunc{wxRichTextParagraphStyleDefinition*
}{FindParagraphStyle
}{\param{const wxString\&
}{name
}}
74 Finds a paragraph definition by name.
76 \membersection{wxRichTextStyleSheet::GetCharacterStyle
}\label{wxrichtextstylesheetgetcharacterstyle
}
78 \constfunc{wxRichTextCharacterStyleDefinition*
}{GetCharacterStyle
}{\param{size
\_t }{n
}}
80 Returns the
{\it n
}th character style.
82 \membersection{wxRichTextStyleSheet::GetCharacterStyleCount
}\label{wxrichtextstylesheetgetcharacterstylecount
}
84 \constfunc{size
\_t}{GetCharacterStyleCount
}{\void}
86 Returns the number of character styles.
88 \membersection{wxRichTextStyleSheet::GetListStyle
}\label{wxrichtextstylesheetgetliststyle
}
90 \constfunc{wxRichTextListStyleDefinition*
}{GetListStyle
}{\param{size
\_t }{n
}}
92 Returns the
{\it n
}th list style.
94 \membersection{wxRichTextStyleSheet::GetListStyleCount
}\label{wxrichtextstylesheetgetliststylecount
}
96 \constfunc{size
\_t}{GetListStyleCount
}{\void}
98 Returns the number of list styles.
100 \membersection{wxRichTextStyleSheet::GetParagraphStyle
}\label{wxrichtextstylesheetgetparagraphstyle
}
102 \constfunc{wxRichTextParagraphStyleDefinition*
}{GetParagraphStyle
}{\param{size
\_t }{n
}}
104 Returns the
{\it n
}th paragraph style.
106 \membersection{wxRichTextStyleSheet::GetParagraphStyleCount
}\label{wxrichtextstylesheetgetparagraphstylecount
}
108 \constfunc{size
\_t}{GetParagraphStyleCount
}{\void}
110 Returns the number of paragraph styles.
112 \membersection{wxRichTextStyleSheet::Init
}\label{wxrichtextstylesheetinit
}
114 \func{void
}{Init
}{\void}
116 Initialises the style sheet.
118 \membersection{wxRichTextStyleSheet::RemoveCharacterStyle
}\label{wxrichtextstylesheetremovecharacterstyle
}
120 \func{bool
}{RemoveCharacterStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
122 Removes a character style.
124 \membersection{wxRichTextStyleSheet::RemoveListStyle
}\label{wxrichtextstylesheetremoveliststyle
}
126 \func{bool
}{RemoveListStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
128 Removes a list style.
130 \membersection{wxRichTextStyleSheet::RemoveParagraphStyle
}\label{wxrichtextstylesheetremoveparagraphstyle
}
132 \func{bool
}{RemoveParagraphStyle
}{\param{wxRichTextStyleDefinition*
}{def
},
\param{bool
}{deleteStyle = false
}}
134 Removes a paragraph style.