12 #ifndef _WX_CANVASSVGIO_H_
13 #define _WX_CANVASSVGIO_H_
21 #include "wx/editor/candoc.h"
25 #if (wxART2D_USE_XMLPARSE == 0)
26 #error Cannot build with SVG support without XMLPARSE module
48 virtual bool CanLoad(
a2dDocumentInputStream& stream,
const wxObject* obj = NULL, wxClassInfo* docClassInfo = NULL );
75 bool ParsePathPoints(
a2dVpath* points );
121 void SetIterC(
a2dIterC& ic ) { m_ic = ⁣ }
123 bool CanSave(
const wxObject* obj = NULL );
133 void CreateSVGSpline(
const a2dVertexList* vertexList,
bool asPolygon =
false,
const wxString& style = _T(
"" ) );
134 void CreateSVGSpline(
const a2dVertexArray* vertexArray,
bool asPolygon =
false,
const wxString& style = _T(
"" ) );
141 wxString UniqueName( wxString baseName );
160 map<wxString, int> m_nameMap;
162 #endif //wxART2D_USE_SVGIO
a2dStroke m_stroke
currentstroke style
(In) Visible property that can be added to Docview Objects.
Base class for all types of strokes, understood by a2dDrawer2D classes.
a2dCanvasDocument * m_doc
the document to store/load the data found into
a2dCanvasObject * m_showObject
save the document from this object down.
output handler for the SVG format
a2dIOHandlerCVGIn and a2dIOHandlerCVGOut - XML I/O classes for the CVG format.
wxOutputStream a2dDocumentOutputStream
output stream based wxStreams
vertex array of line and arc segments.
a2dCanvasObject is the base class for Canvas Objects.
vertex list of line and arc segments.
vector path a2dVectorPath derived from a2dCanvasObject
void SetShowObject(a2dCanvasObject *showObject)
document will be saved as seen from this object, if NULL, the root of the document will be used...
XML I/O classes which is Pull parser based for reading XML files.
a2dFill m_fill
currentfill style
input handler for the SVG format
a2dFill m_fill
currentfill style
layer settings for a a2dCanvasDocument Holds layers settings classes
a2dCanvasDocument * m_doc
the document to store/load the data found into
functions for encoding characters in xml
properties specific for a2dCanvasOject
a2dCanvasObject * GetShowObject() const
return pointer of the currently set object to save.
while iterating a a2dCanvasDocument, this holds the context.
wxInputStream a2dDocumentInputStream
input stream based wxStreams
a2dStroke m_stroke
currentstroke style
Each a2dCanvasView needs to have a a2dCanvasDocument set in order to render data. ...
Input and output handler for XML alike files.
all polygon and polyline a2dCanvasObject are here.