X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e7ad1cab887c2f1cd1a624ec0aec60d20b4d6e2..c86b476dd540ac302ad023dc864c7c7d4f9ed823:/interface/wx/richtext/richtextxml.h diff --git a/interface/wx/richtext/richtextxml.h b/interface/wx/richtext/richtextxml.h index 9c11dbe355..74fc2a2bc4 100644 --- a/interface/wx/richtext/richtextxml.h +++ b/interface/wx/richtext/richtextxml.h @@ -37,7 +37,7 @@ public: */ wxRichTextXMLHandler(const wxString& name = wxT("XML"), const wxString& ext = wxT("xml"), - int type = wxRICHTEXT_TYPE_XML) const; + int type = wxRICHTEXT_TYPE_XML); /** Returns @true. @@ -54,16 +54,6 @@ public: */ wxString CreateStyle(const wxTextAttr& attr, bool isPara = false); - /** - Loads buffer context from the given stream. - */ - bool DoLoadFile(wxRichTextBuffer* buffer, wxInputStream& stream); - - /** - Saves buffer context to the given stream. - */ - bool DoSaveFile(wxRichTextBuffer* buffer, wxOutputStream& stream); - /** Recursively exports an object to the stream. */ @@ -109,5 +99,17 @@ public: Recursively imports an object. */ bool ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node); + +protected: + + /** + Loads buffer context from the given stream. + */ + virtual bool DoLoadFile(wxRichTextBuffer* buffer, wxInputStream& stream); + + /** + Saves buffer context to the given stream. + */ + virtual bool DoSaveFile(wxRichTextBuffer* buffer, wxOutputStream& stream); };