15 #ifndef _WX_CANVASDOCXMLIO_H_
16 #define _WX_CANVASDOCXMLIO_H_
18 #include "a2dprivate.h"
20 #if wxART2D_USE_XMLPARSE
23 #include <wx/string.h>
25 #if wxCHECK_VERSION(2, 5, 3)
26 #include <wx/sstream.h>
108 bool CanSave(
const wxObject* obj = NULL ) {
return true; }
118 void WriteCvgEndDocument();
128 #endif //wxART2D_USE_CVGIO
130 #endif // wxART2D_USE_XMLPARSE
output handler for the CVG format.
bool SaveStartAt(a2dDocumentOutputStream &stream, const a2dDrawing *drawing, a2dCanvasObject *start)
saves as CVG starting at object start
wxOutputStream a2dDocumentOutputStream
output stream based wxStreams
a2dCanvasObject is the base class for Canvas Objects.
output handler for the CVG format.
XML I/O classes which is Pull parser based for reading XML files.
a2dCanvasDocument * m_doc
the document to store/load the data found into
virtual bool CanLoad(a2dDocumentInputStream &stream, const wxObject *obj=NULL, wxClassInfo *docClassInfo=NULL)
test header of the file to see if its CVG format
Input handler for the CVG format.
Docview classes for document view, window and frame.
bool SaveLayers(a2dDocumentOutputStream &stream, a2dLayers *layers)
save a layer definition to a CVG file.
wxStringInputStream a2dDocumentStringInputStream
string input stream based wxStreams
bool Load(a2dDocumentStringInputStream &stream, a2dDrawing *doc, a2dCanvasObject *parent)
reading a CVG document and add the contents as children to a given a2dCanvasObject parent...
bool LoadLayers(a2dDocumentInputStream &stream, a2dLayers *layers)
load a layer definition from a CVG file.
functions for encoding characters in xml
a2dCanvasDocument * m_doc
the document to store/load the data found into
wxInputStream a2dDocumentInputStream
input stream based wxStreams
Each a2dCanvasView needs to have a a2dCanvasDocument set in order to render data. ...
bool CanSave(const wxObject *obj=NULL)
this handler can also save as CVG
Input handler for the CVG format.