#include <parssvg.h>


Public Member Functions | |
| void | SetShowObject (a2dCanvasObject *showObject) |
| document will be saved as seen from this object, if NULL, the root of the document will be used. | |
| a2dCanvasObject * | GetShowObject () const |
| return pointer of the currently set object to save. | |
| void | SetIterC (a2dIterC &ic) |
| bool | CanSave (const wxObject *obj=NULL) |
| Should return true if the handler can write this document to a stream. | |
| virtual bool | Save (a2dDocumentOutputStream &stream, const wxObject *doc) |
| Override to write to the stream and store (part of) of the document contents in the stream. | |
Protected Member Functions | |
| void | Save (const a2dCanvasObject *object, int layer) |
| void | SetSVGStyle (const a2dFill &fill, const a2dStroke &stroke, const a2dCanvasObject *object, int layer) |
| void | SaveGradient (const a2dFill &fill, const a2dCanvasObject *object) |
| void | CreateSVGSpline (const a2dVertexList *vertexList, bool asPolygon=false, const wxString &style=_T("")) |
| Generates a quadratic spline path in SVG from a set of points representing the control polygon. This correctly renders the spline in the same way as the drawers for both polylines and polygons. | |
| void | CreateSVGSpline (const a2dVertexArray *vertexArray, bool asPolygon=false, const wxString &style=_T("")) |
| void | DoSave (const a2dCanvasObject *object, int layer) |
| Generates SVG XML code for different types of canvas objects. | |
| void | DoSaveProperty (const a2dCanvasObject *object, const a2dNamedProperty *property, int layer) |
| wxString | UniqueName (wxString baseName) |
Protected Attributes | |
| a2dCanvasDocument * | m_doc |
| the document to store/load the data found into | |
| a2dCanvasObjectPtr | m_currentobject |
| a2dFill | m_fill |
| currentfill style | |
| a2dStroke | m_stroke |
| currentstroke style | |
| a2dIterC * | m_ic |
| a2dCanvasObject * | m_showObject |
| save the document from this object down. | |
| map< wxString, int > | m_nameMap |
Definition at line 101 of file parssvg.h.
| a2dCanvasObject* a2dIOHandlerSVGOut::GetShowObject | ( | ) | const [inline] |
| bool a2dIOHandlerSVGOut::CanSave | ( | const wxObject * | obj = NULL |
) | [virtual] |
Should return true if the handler can write this document to a stream.
Mostly implemented by simply returning true if the handler can indeed do this job. Understand that a a2dDocument itself is useless for storing data, so it needs to be casted internal to a specific a2dDocument.
| obj | pointer to object to save, normally a document. |
Implements a2dIOHandlerStrOut.
Definition at line 1527 of file parssvg.cpp.
| bool a2dIOHandlerSVGOut::Save | ( | a2dDocumentOutputStream & | stream, | |
| const wxObject * | obj | |||
| ) | [virtual] |
Override to write to the stream and store (part of) of the document contents in the stream.
Understand that a a2dDocument itself is useless for storing data, so it needs to be casted internal to a specific a2dDocument.
| stream | the open stream to which the object needs to be saved | |
| obj | object to save into stream, needs to be casted to the right one internal. |
Implements a2dIOHandlerStrOut.
Definition at line 1534 of file parssvg.cpp.
| void a2dIOHandlerSVGOut::Save | ( | const a2dCanvasObject * | object, | |
| int | layer | |||
| ) | [protected] |
todo this save of SVG should itself make a record of available layers, maybe use an internal view to do so.
Definition at line 1639 of file parssvg.cpp.
| void a2dIOHandlerSVGOut::DoSave | ( | const a2dCanvasObject * | object, | |
| int | layer | |||
| ) | [protected] |
Generates SVG XML code for different types of canvas objects.
now same as circle arc...
now same as circle arc...
Definition at line 2226 of file parssvg.cpp.