X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f02a879ed7efc5fcf6328ff47a1352ec82812b7..a85085c9336743b593c25c7934e50d6ac6fc91e0:/include/wx/richtext/richtextxml.h?ds=sidebyside diff --git a/include/wx/richtext/richtextxml.h b/include/wx/richtext/richtextxml.h index f0cef5b266..493511f802 100644 --- a/include/wx/richtext/richtextxml.h +++ b/include/wx/richtext/richtextxml.h @@ -17,6 +17,7 @@ */ #include "wx/richtext/richtextbuffer.h" +#include "wx/richtext/richtextstyles.h" #if wxUSE_RICHTEXT && wxUSE_XML @@ -24,9 +25,9 @@ * wxRichTextXMLHandler */ -class WXDLLIMPEXP_XML wxXmlNode; +class WXDLLIMPEXP_FWD_XML wxXmlNode; -class WXDLLIMPEXP_ADV wxRichTextXMLHandler: public wxRichTextFileHandler +class WXDLLIMPEXP_RICHTEXT wxRichTextXMLHandler: public wxRichTextFileHandler { DECLARE_CLASS(wxRichTextXMLHandler) public: @@ -37,15 +38,17 @@ public: #if wxUSE_STREAMS /// Recursively export an object bool ExportXML(wxOutputStream& stream, wxMBConv* convMem, wxMBConv* convFile, wxRichTextObject& obj, int level); + bool ExportStyleDefinition(wxOutputStream& stream, wxMBConv* convMem, wxMBConv* convFile, wxRichTextStyleDefinition* def, int level); /// Recursively import an object bool ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node); + bool ImportStyleDefinition(wxRichTextStyleSheet* sheet, wxXmlNode* node); /// Create style parameters - wxString CreateStyle(const wxTextAttrEx& attr, bool isPara = false); + wxString CreateStyle(const wxTextAttr& attr, bool isPara = false); /// Get style parameters - bool GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool isPara = false); + bool GetStyle(wxTextAttr& attr, wxXmlNode* node, bool isPara = false); #endif /// Can we save using this handler?