X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adaaa68635b4c8a4d8c5284add40366ea3eefb07..cc378c2d7521e58e6f067470b798e9c81dd08c61:/interface/wx/richtext/richtextxml.h diff --git a/interface/wx/richtext/richtextxml.h b/interface/wx/richtext/richtextxml.h index 69c812b3b3..309a5e0142 100644 --- a/interface/wx/richtext/richtextxml.h +++ b/interface/wx/richtext/richtextxml.h @@ -10,10 +10,21 @@ @class wxRichTextXMLHandler A handler for loading and saving content in an XML format specific - to wxRichTextBuffer. 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. + to wxRichTextBuffer. + + 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. + + + @section richtextxmlhandler_flags 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: + + - wxRICHTEXT_HANDLER_INCLUDE_STYLESHEET + Include the style sheet in loading and saving operations. + @library{wxrichtext} @category{richtext} @@ -22,10 +33,11 @@ class wxRichTextXMLHandler : public wxRichTextFileHandler { public: /** - , wxString&@e ext = wxT("xml"), @b int@e type = wxRICHTEXT_TYPE_XML) Constructor. */ - wxRichTextXMLHandler() const; + wxRichTextXMLHandler(const wxString& name = wxT("XML"), + const wxString& ext = wxT("xml"), + int type = wxRICHTEXT_TYPE_XML); /** Returns @true. @@ -45,12 +57,12 @@ public: /** Loads buffer context from the given stream. */ - bool DoLoadFile(wxRichTextBuffer* buffer, wxInputStream& stream); + virtual bool DoLoadFile(wxRichTextBuffer* buffer, wxInputStream& stream); /** Saves buffer context to the given stream. */ - bool DoSaveFile(wxRichTextBuffer* buffer, wxOutputStream& stream); + virtual bool DoSaveFile(wxRichTextBuffer* buffer, wxOutputStream& stream); /** Recursively exports an object to the stream.