]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_richtextxml.i
mention wxLogInterposer(Temp)
[wxWidgets.git] / wxPython / src / _richtextxml.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _richtextxml
3 // Purpose: wxRichTextXMLHandler
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 18-May-2007
8 // RCS-ID: $Id$
9 // Copyright: (c) 2007 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 // Not a %module
14
15
16 //---------------------------------------------------------------------------
17
18 %{
19 #include <wx/richtext/richtextxml.h>
20 %}
21
22 //---------------------------------------------------------------------------
23 %newgroup
24
25 MAKE_CONST_WXSTRING2(XmlName, wxT("XML"));
26 MAKE_CONST_WXSTRING2(XmlExt, wxT("xml"));
27
28
29 class wxRichTextXMLHandler: public wxRichTextFileHandler
30 {
31 public:
32 wxRichTextXMLHandler(const wxString& name = wxPyXmlName,
33 const wxString& ext = wxPyXmlExt,
34 int type = wxRICHTEXT_TYPE_XML);
35
36 // #if wxUSE_STREAMS
37 // /// Recursively export an object
38 // bool ExportXML(wxOutputStream& stream, wxMBConv* convMem, wxMBConv* convFile, wxRichTextObject& obj, int level);
39 // bool ExportStyleDefinition(wxOutputStream& stream, wxMBConv* convMem, wxMBConv* convFile, wxRichTextStyleDefinition* def, int level);
40
41 // /// Recursively import an object
42 // bool ImportXML(wxRichTextBuffer* buffer, wxXmlNode* node);
43 // bool ImportStyleDefinition(wxRichTextStyleSheet* sheet, wxXmlNode* node);
44
45 // /// Create style parameters
46 // wxString CreateStyle(const wxTextAttrEx& attr, bool isPara = false);
47
48 // /// Get style parameters
49 // bool GetStyle(wxTextAttrEx& attr, wxXmlNode* node, bool isPara = false);
50 // #endif
51
52 /// Can we save using this handler?
53 virtual bool CanSave() const;
54
55 /// Can we load using this handler?
56 virtual bool CanLoad() const;
57
58
59 // bool HasParam(wxXmlNode* node, const wxString& param);
60 // wxXmlNode *GetParamNode(wxXmlNode* node, const wxString& param);
61 // wxString GetNodeContent(wxXmlNode *node);
62 // wxString GetParamValue(wxXmlNode *node, const wxString& param);
63 // wxString GetText(wxXmlNode *node, const wxString& param = wxEmptyString, bool translate = false);
64
65 };
66
67 //---------------------------------------------------------------------------