X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b2cb4316b4deca34ae451493449e97e4bdb3f3b..74f35eea76a446101e129cd7d2c219c3266dcbbf:/include/wx/richtext/richtextxml.h diff --git a/include/wx/richtext/richtextxml.h b/include/wx/richtext/richtextxml.h index 791e37e798..5399ab5e32 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,7 +25,7 @@ * wxRichTextXMLHandler */ -class WXDLLIMPEXP_XML wxXmlNode; +class WXDLLIMPEXP_FWD_XML wxXmlNode; class WXDLLIMPEXP_RICHTEXT wxRichTextXMLHandler: public wxRichTextFileHandler { @@ -37,9 +38,11 @@ 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);