24 #ifndef __WXDOCRECUR_H__
25 #define __WXDOCRECUR_H__
31 #include "wx/editor/candoc.h"
33 #include "wx/canvas/canimage.h"
36 #define __USE_EVENTS 1
38 #define newline wxString("\n")
97 wxFileName& GetFileName() {
return m_fileName; }
106 #if wxART2D_USE_CVGIO
110 #endif //wxART2D_USE_CVGIO
114 wxFileName m_fileName;
125 DECLARE_EVENT_TABLE()
129 bool up =
false,
int alignment = a2dDEFAULT_ALIGNMENT );
132 bool up =
false,
int alignment = a2dDEFAULT_ALIGNMENT );
142 wxFileName& GetFileName() {
return m_fileName; }
144 void SetDisplayShort(
bool val ) { m_displayShort = val; }
145 void SetDisplayExt(
bool val ) { m_displayExt = val; }
146 bool GetDisplayShort() {
return m_displayShort; }
147 bool GetDisplayExt() {
return m_displayExt; }
162 #if wxART2D_USE_CVGIO
166 #endif //wxART2D_USE_CVGIO
170 wxFileName m_fileName;
bool DoUpdate(UpdateMode mode, const a2dBoundingBox &childbox, const a2dBoundingBox &clipbox, const a2dBoundingBox &propbox)
Update derived Object specific things ( mainly boundingbox)
a2dText derived from a2dCanvasObject, holds multiline text
all basic primitives derived from a2dCanvasObject
virtual bool DoIsHitWorld(a2dIterC &ic, a2dHitEvent &hitEvent)
Does hit test on the object (exclusif child objects)
mouse event sent from a2dCanvasObject to itself
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
void OnCanvasObjectMouseEvent(a2dCanvasObjectMouseEvent &event)
default handler for mouse events, sent to the object from the a2dDrawingPart.
class to map references to objects stored in XML, in order to make the connection later on...
void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
Load object specific CVG data.
virtual void DependencyPending(a2dWalkerIOHandler *handler)
called by to check if this object becomes pending as a result of other objects
to display a2dCanvasObject references
Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc.
Input and output handler for the XmlSer format.
UpdateMode
Various mode flags for Update.
virtual bool DoStartEdit(wxUint16 editmode, wxEditStyle editstyle)
only used for editable objects and under control of a editing tool.
virtual void DoLoad(wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
load object specific CVG data
a2dCanvasObject is the base class for Canvas Objects.
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
Io handler to iterate through a a2dDocument.
a2dText is an abstract base class.
virtual void DoSave(wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
write object specific CVGL data
Input and output handler for the XmlSer format.
virtual bool DoIsHitWorld(a2dIterC &ic, a2dHitEvent &hitEvent)
Does hit test on the object (exclusif child objects)
to display a2dCanvasObject references
while iterating a a2dCanvasDocument, this holds the context.
virtual a2dObject * DoClone(CloneOptions options, a2dRefMap *refs) const
Clone this object and return a pointer to the new object.
const a2dFont * a2dDEFAULT_CANVASFONT
global a2dFont stock object for default font
virtual void DoSave(wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
Write object specific CVG data.
Each a2dCanvasView needs to have a a2dCanvasDocument set in order to render data. ...
to display a2dCanvasObject references
The a2dBoundingBox class stores one a2dBoundingBox of a a2dCanvasObject.
a2dLibraryReference is a symbol object, it holds a reference
CloneOptions
options for cloning
virtual void DoEndEdit()
only used for editable objects and under control of a editing tool.
structure to give as parameter to member functions of a2dCanvasObject