*/
wxRichTextXMLHandler(const wxString& name = wxT("XML"),
const wxString& ext = wxT("xml"),
- int type = wxRICHTEXT_TYPE_XML) const;
+ int type = wxRICHTEXT_TYPE_XML);
/**
Returns @true.
*/
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.
*/
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);
};