Inheritance diagram for wx.richtext.RichTextFileHandler:
This is the base class for file handlers, for loading and/or saving content associated with a wx.richtext.RichTextBuffer.
wx.richtext.RichTextHTMLHandler, wx.richtext.RichTextPlainTextHandler, wx.richtext.RichTextXMLHandler
Override this function and return True if this handler can we handle filename.
By default, this function checks the extension.
Parameters:
Returns:
bool
Override and return True if this handler can load content.
Returns:
bool
Override and return True if this handler can save content.
Returns:
bool
Returns the encoding associated with the handler (if any).
Returns:
string
Returns the extension associated with the handler.
Returns:
string
Returns flags that change the behaviour of loading or saving.
See the documentation for each handler class to see what flags are relevant for each handler.
Returns:
int
Returns the name of the handler.
Returns:
string
Returns the type of the handler.
Returns:
int
Returns True if this handler should be visible to the user.
Returns:
bool
Loads content from a file.
Not all handlers will implement file loading.
Parameters:
Returns:
bool
Loads content from a stream.
Not all handlers will implement file loading.
Parameters:
Returns:
bool
Saves content to a file.
Not all handlers will implement file saving.
Parameters:
Returns:
bool
Saves content to a stream.
Not all handlers will implement file saving.
Parameters:
Returns:
bool
Sets the encoding to use when saving a file. If empty, a suitable encoding is chosen.
Parameters:
Sets the default extension to recognise.
Parameters:
Sets flags that change the behaviour of loading or saving.
See the documentation for each handler class to see what flags are relevant for each handler.
You call this function directly if you are using a file handler explicitly (without going through the text control or buffer LoadFile/SaveFile API). Or, you can call the control or buffer’s SetHandlerFlags function to set the flags that will be used for subsequent load and save operations.
Parameters:
Sets the name of the handler.
Parameters:
Sets the handler type.
Parameters:
Sets whether the handler should be visible to the user (via the application’s load and save dialogs).
Parameters: