wx.richtext.RichTextXMLHandler¶A handler for loading and saving content in an XML format specific to wx.richtext.RichTextBuffer.
You can either add the handler to the buffer and load and save through the buffer or control API, or you can create an instance of the handler on the stack and call its functions directly.
Handler flags¶The following flags can be used with this handler, via the handler’s SetFlags function or the buffer or control’s SetHandlerFlags() function:
wx.richtext.RICHTEXT_HANDLER_INCLUDE_STYLESHEET Include the style sheet in loading and saving operations.
Class Hierarchy¶
Inheritance diagram for class RichTextXMLHandler:
Methods Summary¶Constructor. |
|
Returns |
|
Returns |
|
Cleans up the mapping between node name and C++ class. |
|
Recursively exports an object to the stream. |
|
Recursively imports an object. |
|
Call with |
Class API¶Possible constructors:
RichTextXMLHandler(name="XML", ext="xml", type=RICHTEXT_TYPE_XML) ->
None
A handler for loading and saving content in an XML format specific to
RichTextBuffer.
Constructor.
name (string)
ext (string)
type (int)
None
Returns True.
bool
Returns True.
bool
Cleans up the mapping between node name and C++ class.
None
Recursively exports an object to the stream.
stream (wx.OutputStream)
level (int)
bool
Recursively imports an object.
buffer (wx.richtext.RichTextBuffer)
node (wx.xml.XmlNode)
bool
Call with XML node name, C++ class name so that RTC can read in the node.
If you add a custom object, call this.
nodeName (string)
className (string)
None