X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0004982c831f56c65c390fb617711ff52595c2f3..58fa61dbad0ea1158f6c6e96d611c26057e069ba:/interface/wx/richtext/richtextxml.h?ds=sidebyside diff --git a/interface/wx/richtext/richtextxml.h b/interface/wx/richtext/richtextxml.h index 309a5e0142..aaa42f746d 100644 --- a/interface/wx/richtext/richtextxml.h +++ b/interface/wx/richtext/richtextxml.h @@ -35,8 +35,8 @@ public: /** Constructor. */ - wxRichTextXMLHandler(const wxString& name = wxT("XML"), - const wxString& ext = wxT("xml"), + wxRichTextXMLHandler(const wxString& name = "XML", + const wxString& ext = "xml", int type = wxRICHTEXT_TYPE_XML); /** @@ -54,16 +54,6 @@ public: */ wxString CreateStyle(const wxTextAttr& attr, bool isPara = false); - /** - 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); - /** 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); };