⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 richtextbuffer.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 3 页
字号:
{\it flags} is a bit list of the following:\begin{itemize}\itemsep=0pt\item wxRICHTEXT\_SETSTYLE\_WITH\_UNDO: specifies that this command will be undoable.\end{itemize}See also \helpref{wxRichTextBuffer::SetListStyle}{wxrichtextbuffersetliststyle}, \helpref{wxRichTextBuffer::PromoteList}{wxrichtextbufferpromotelist}, \helpref{wxRichTextBuffer::NumberList}{wxrichtextbuffernumberlist}.\membersection{wxRichTextBuffer::ClearStyleStack}\label{wxrichtextbufferclearstylestack}\func{void}{ClearStyleStack}{\void}Clears the style stack.\membersection{wxRichTextBuffer::Clone}\label{wxrichtextbufferclone}\constfunc{wxRichTextObject*}{Clone}{\void}Clones the object.\membersection{wxRichTextBuffer::Copy}\label{wxrichtextbuffercopy}\func{void}{Copy}{\param{const wxRichTextBuffer\& }{obj}}Copies the given buffer.\membersection{wxRichTextBuffer::CopyToClipboard}\label{wxrichtextbuffercopytoclipboard}\func{bool}{CopyToClipboard}{\param{const wxRichTextRange\& }{range}}Copy the given range to the clipboard.\membersection{wxRichTextBuffer::DeleteRangeWithUndo}\label{wxrichtextbufferdeleterangewithundo}\func{bool}{DeleteRangeWithUndo}{\param{const wxRichTextRange\& }{range}, \param{wxRichTextCtrl* }{ctrl}}Submits a command to delete the given range.\membersection{wxRichTextBuffer::Dump}\label{wxrichtextbufferdump}\func{void}{Dump}{\void}\func{void}{Dump}{\param{wxTextOutputStream\& }{stream}}Dumps the contents of the buffer for debugging purposes.\membersection{wxRichTextBuffer::EndAlignment}\label{wxrichtextbufferendalignment}\func{bool}{EndAlignment}{\void}Ends alignment.\membersection{wxRichTextBuffer::EndAllStyles}\label{wxrichtextbufferendallstyles}\func{bool}{EndAllStyles}{\void}Ends all styles that have been started with a Begin... command.\membersection{wxRichTextBuffer::EndBatchUndo}\label{wxrichtextbufferendbatchundo}\func{bool}{EndBatchUndo}{\void}Ends collapsing undo/redo commands, and submits the combined command.\membersection{wxRichTextBuffer::EndBold}\label{wxrichtextbufferendbold}\func{bool}{EndBold}{\void}Ends using bold.\membersection{wxRichTextBuffer::EndCharacterStyle}\label{wxrichtextbufferendcharacterstyle}\func{bool}{EndCharacterStyle}{\void}Ends using the named character style.\membersection{wxRichTextBuffer::EndFont}\label{wxrichtextbufferendfont}\func{bool}{EndFont}{\void}Ends using a font.\membersection{wxRichTextBuffer::EndFontSize}\label{wxrichtextbufferendfontsize}\func{bool}{EndFontSize}{\void}Ends using a point size.\membersection{wxRichTextBuffer::EndItalic}\label{wxrichtextbufferenditalic}\func{bool}{EndItalic}{\void}Ends using italic.\membersection{wxRichTextBuffer::EndLeftIndent}\label{wxrichtextbufferendleftindent}\func{bool}{EndLeftIndent}{\void}Ends using a left indent.\membersection{wxRichTextBuffer::EndLineSpacing}\label{wxrichtextbufferendlinespacing}\func{bool}{EndLineSpacing}{\void}Ends using a line spacing.\membersection{wxRichTextBuffer::EndListStyle}\label{wxrichtextbufferendliststyle}\func{bool}{EndListStyle}{\void}Ends using a specified list style.\membersection{wxRichTextBuffer::EndNumberedBullet}\label{wxrichtextbufferendnumberedbullet}\func{bool}{EndNumberedBullet}{\void}Ends a numbered bullet.\membersection{wxRichTextBuffer::EndParagraphSpacing}\label{wxrichtextbufferendparagraphspacing}\func{bool}{EndParagraphSpacing}{\void}Ends paragraph spacing.\membersection{wxRichTextBuffer::EndParagraphStyle}\label{wxrichtextbufferendparagraphstyle}\func{bool}{EndParagraphStyle}{\void}Ends applying a named character style.\membersection{wxRichTextBuffer::EndRightIndent}\label{wxrichtextbufferendrightindent}\func{bool}{EndRightIndent}{\void}Ends using a right indent.\membersection{wxRichTextBuffer::EndStyle}\label{wxrichtextbufferendstyle}\func{bool}{EndStyle}{\void}Ends the current style.\membersection{wxRichTextBuffer::EndSuppressUndo}\label{wxrichtextbufferendsuppressundo}\func{bool}{EndSuppressUndo}{\void}Ends suppressing undo/redo commands.\membersection{wxRichTextBuffer::EndSymbolBullet}\label{wxrichtextbufferendsymbolbullet}\func{bool}{EndSymbolBullet}{\void}Ends using a symbol bullet.\membersection{wxRichTextBuffer::EndStandardBullet}\label{wxrichtextbufferendstandardbullet}\func{bool}{EndStandardBullet}{\void}Ends using a standard bullet.\membersection{wxRichTextBuffer::EndTextColour}\label{wxrichtextbufferendtextcolour}\func{bool}{EndTextColour}{\void}Ends using a text foreground colour.\membersection{wxRichTextBuffer::EndUnderline}\label{wxrichtextbufferendunderline}\func{bool}{EndUnderline}{\void}Ends using underline.\membersection{wxRichTextBuffer::EndURL}\label{wxrichtextbufferendurl}\func{bool}{EndURL}{\void}Ends applying a URL.\membersection{wxRichTextBuffer::FindHandler}\label{wxrichtextbufferfindhandler}\func{wxRichTextFileHandler*}{FindHandler}{\param{int }{imageType}}Finds a handler by type.\func{wxRichTextFileHandler*}{FindHandler}{\param{const wxString\& }{extension}, \param{int }{imageType}}Finds a handler by extension and type.\func{wxRichTextFileHandler*}{FindHandler}{\param{const wxString\& }{name}}Finds a handler by name.\membersection{wxRichTextBuffer::FindHandlerFilenameOrType}\label{wxrichtextbufferfindhandlerfilenameortype}\func{wxRichTextFileHandler*}{FindHandlerFilenameOrType}{\param{const wxString\& }{filename}, \param{int }{imageType}}Finds a handler by filename or, if supplied, type.\membersection{wxRichTextBuffer::GetBasicStyle}\label{wxrichtextbuffergetbasicstyle}\constfunc{const wxTextAttrEx\&}{GetBasicStyle}{\void}Gets the basic (overall) style. This is the style of the wholebuffer before further styles are applied, unlike the default style, whichonly affects the style currently being applied (for example, setting the defaultstyle to bold will cause subsequently inserted text to be bold).\membersection{wxRichTextBuffer::GetBatchedCommand}\label{wxrichtextbuffergetbatchedcommand}\constfunc{wxRichTextCommand*}{GetBatchedCommand}{\void}Gets the collapsed command.\membersection{wxRichTextBuffer::GetCommandProcessor}\label{wxrichtextbuffergetcommandprocessor}\constfunc{wxCommandProcessor*}{GetCommandProcessor}{\void}Gets the command processor. A text buffer always creates its own command processor when it isinitialized.\membersection{wxRichTextBuffer::GetDefaultStyle}\label{wxrichtextbuffergetdefaultstyle}\constfunc{const wxTextAttrEx\&}{GetDefaultStyle}{\void}Returns the current default style, affecting the style currently being applied (for example, setting the defaultstyle to bold will cause subsequently inserted text to be bold).\membersection{wxRichTextBuffer::GetExtWildcard}\label{wxrichtextbuffergetextwildcard}\func{wxString}{GetExtWildcard}{\param{bool }{combine = false}, \param{bool }{save = false}, \param{wxArrayInt* }{types = NULL}}Gets a wildcard incorporating all visible handlers. If {\it types} is present,it will be filled with the file type corresponding to each filter. This can beused to determine the type to pass to \helpref{LoadFile}{wxrichtextbuffergetextwildcard} given a selected filter.\membersection{wxRichTextBuffer::GetHandlers}\label{wxrichtextbuffergethandlers}\func{wxList\&}{GetHandlers}{\void}Returns the list of file handlers.\membersection{wxRichTextBuffer::GetRenderer}\label{wxrichtextbuffergetrenderer}\func{static wxRichTextRenderer*}{GetRenderer}{\void}Returns the object to be used to render certain aspects of the content, such as bullets.\membersection{wxRichTextBuffer::GetStyle}\label{wxrichtextbuffergetstyle}\func{bool}{GetStyle}{\param{long }{position}, \param{wxRichTextAttr\& }{style}}\func{bool}{GetStyle}{\param{long }{position}, \param{wxTextAttrEx\& }{style}}Gets the attributes at the given position.This function gets the combined style - that is, the style you see on the screen as a resultof combining base style, paragraph style and character style attributes. To get the characteror paragraph style alone, use \helpref{GetUncombinedStyle}{wxrichtextbuffergetuncombinedstyle}.\membersection{wxRichTextBuffer::GetStyleForRange}\label{wxrichtextbuffergetstyleforrange}\func{bool}{GetStyleForRange}{\param{const wxRichTextRange\&}{ range}, \param{wxTextAttrEx\& }{style}}This function gets a style representing the common, combined attributes in the given range.Attributes which have different values within the specified range will not be included the styleflags.The function is used to get the attributes to display in the formatting dialog: the usercan edit the attributes common to the selection, and optionally specify the values of furtherattributes to be applied uniformly.To apply the edited attributes, you can use \helpref{SetStyle}{wxrichtextbuffersetstyle} specifyingthe wxRICHTEXT\_SETSTYLE\_OPTIMIZE flag, which will only apply attributes that are differentfrom the {\it combined} attributes within the range. So, the user edits the effective, displayed attributesfor the range, but his choice won't be applied unnecessarily to content. As an example,say the style for a paragraph specifies bold, but the paragraph text doesn't specify a weight. Thecombined style is bold, and this is what the user will see on-screen and in the formattingdialog. The user now specifies red text, in addition to bold. When applying withSetStyle, the content font weight attributes won't be changed to bold because this is already specified

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -