d2d0adc776
generating a wxTextUrlEvent as appropriate. Added outline list support and updated previews. Added alignment support for bullets. Added single right parenthesis support. Added XML stylesheet reading/writing. Changed SetBulletSymbol to SetBulletText so it can support bullet text more generally (e.g. for cached outline list numbering) Added wxRichTextRenderer to isolate e.g. bullet drawing and make it customisable. Added event handler support to wxRichTextBuffer. Updated documentation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
136 lines
4.5 KiB
TeX
136 lines
4.5 KiB
TeX
\section{\class{wxRichTextStyleSheet}}\label{wxrichtextstylesheet}
|
|
|
|
A style sheet contains named paragraph and character styles that make it
|
|
easy for a user to apply combinations of attributes to a \helpref{wxRichTextCtrl}{wxrichtextctrl}.
|
|
|
|
You can use a \helpref{wxRichTextStyleListBox}{wxrichtextstylelistbox} in your
|
|
user interface to show available styles to the user, and allow application
|
|
of styles to the control.
|
|
|
|
\wxheading{Derived from}
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
\wxheading{Include files}
|
|
|
|
<wx/richtext/richtextstyles.h>
|
|
|
|
\wxheading{Data structures}
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
\membersection{wxRichTextStyleSheet::wxRichTextStyleSheet}\label{wxrichtextstylesheetwxrichtextstylesheet}
|
|
|
|
\func{}{wxRichTextStyleSheet}{\void}
|
|
|
|
Constructor.
|
|
|
|
\membersection{wxRichTextStyleSheet::\destruct{wxRichTextStyleSheet}}\label{wxrichtextstylesheetdtor}
|
|
|
|
\func{}{\destruct{wxRichTextStyleSheet}}{\void}
|
|
|
|
Destructor.
|
|
|
|
\membersection{wxRichTextStyleSheet::AddCharacterStyle}\label{wxrichtextstylesheetaddcharacterstyle}
|
|
|
|
\func{bool}{AddCharacterStyle}{\param{wxRichTextCharacterStyleDefinition* }{def}}
|
|
|
|
Adds a definition to the character style list.
|
|
|
|
\membersection{wxRichTextStyleSheet::AddListStyle}\label{wxrichtextstylesheetaddliststyle}
|
|
|
|
\func{bool}{AddListStyle}{\param{wxRichTextListStyleDefinition* }{def}}
|
|
|
|
Adds a definition to the list style list.
|
|
|
|
\membersection{wxRichTextStyleSheet::AddParagraphStyle}\label{wxrichtextstylesheetaddparagraphstyle}
|
|
|
|
\func{bool}{AddParagraphStyle}{\param{wxRichTextParagraphStyleDefinition* }{def}}
|
|
|
|
Adds a definition to the paragraph style list.
|
|
|
|
\membersection{wxRichTextStyleSheet::DeleteStyles}\label{wxrichtextstylesheetdeletestyles}
|
|
|
|
\func{void}{DeleteStyles}{\void}
|
|
|
|
Deletes all styles.
|
|
|
|
\membersection{wxRichTextStyleSheet::FindCharacterStyle}\label{wxrichtextstylesheetfindcharacterstyle}
|
|
|
|
\constfunc{wxRichTextCharacterStyleDefinition*}{FindCharacterStyle}{\param{const wxString\& }{name}}
|
|
|
|
Finds a character definition by name.
|
|
|
|
\membersection{wxRichTextStyleSheet::FindListStyle}\label{wxrichtextstylesheetfindliststyle}
|
|
|
|
\constfunc{wxRichTextListStyleDefinition*}{FindListStyle}{\param{const wxString\& }{name}}
|
|
|
|
Finds a list definition by name.
|
|
|
|
\membersection{wxRichTextStyleSheet::FindParagraphStyle}\label{wxrichtextstylesheetfindparagraphstyle}
|
|
|
|
\constfunc{wxRichTextParagraphStyleDefinition*}{FindParagraphStyle}{\param{const wxString\& }{name}}
|
|
|
|
Finds a paragraph definition by name.
|
|
|
|
\membersection{wxRichTextStyleSheet::GetCharacterStyle}\label{wxrichtextstylesheetgetcharacterstyle}
|
|
|
|
\constfunc{wxRichTextCharacterStyleDefinition*}{GetCharacterStyle}{\param{size\_t }{n}}
|
|
|
|
Returns the {\it n}th character style.
|
|
|
|
\membersection{wxRichTextStyleSheet::GetCharacterStyleCount}\label{wxrichtextstylesheetgetcharacterstylecount}
|
|
|
|
\constfunc{size\_t}{GetCharacterStyleCount}{\void}
|
|
|
|
Returns the number of character styles.
|
|
|
|
\membersection{wxRichTextStyleSheet::GetListStyle}\label{wxrichtextstylesheetgetliststyle}
|
|
|
|
\constfunc{wxRichTextListStyleDefinition*}{GetListStyle}{\param{size\_t }{n}}
|
|
|
|
Returns the {\it n}th list style.
|
|
|
|
\membersection{wxRichTextStyleSheet::GetListStyleCount}\label{wxrichtextstylesheetgetliststylecount}
|
|
|
|
\constfunc{size\_t}{GetListStyleCount}{\void}
|
|
|
|
Returns the number of list styles.
|
|
|
|
\membersection{wxRichTextStyleSheet::GetParagraphStyle}\label{wxrichtextstylesheetgetparagraphstyle}
|
|
|
|
\constfunc{wxRichTextParagraphStyleDefinition*}{GetParagraphStyle}{\param{size\_t }{n}}
|
|
|
|
Returns the {\it n}th paragraph style.
|
|
|
|
\membersection{wxRichTextStyleSheet::GetParagraphStyleCount}\label{wxrichtextstylesheetgetparagraphstylecount}
|
|
|
|
\constfunc{size\_t}{GetParagraphStyleCount}{\void}
|
|
|
|
Returns the number of paragraph styles.
|
|
|
|
\membersection{wxRichTextStyleSheet::Init}\label{wxrichtextstylesheetinit}
|
|
|
|
\func{void}{Init}{\void}
|
|
|
|
Initialises the style sheet.
|
|
|
|
\membersection{wxRichTextStyleSheet::RemoveCharacterStyle}\label{wxrichtextstylesheetremovecharacterstyle}
|
|
|
|
\func{bool}{RemoveCharacterStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
|
|
|
|
Removes a character style.
|
|
|
|
\membersection{wxRichTextStyleSheet::RemoveListStyle}\label{wxrichtextstylesheetremoveliststyle}
|
|
|
|
\func{bool}{RemoveListStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
|
|
|
|
Removes a list style.
|
|
|
|
\membersection{wxRichTextStyleSheet::RemoveParagraphStyle}\label{wxrichtextstylesheetremoveparagraphstyle}
|
|
|
|
\func{bool}{RemoveParagraphStyle}{\param{wxRichTextStyleDefinition* }{def}, \param{bool }{deleteStyle = false}}
|
|
|
|
Removes a paragraph style.
|
|
|