22 #define newline wxString("\n")
42 a2dFillProperty::~a2dFillProperty()
49 m_value = ori->m_value;
55 m_value = other.m_value;
66 m_value = propcast->m_value;
77 a2dNamedProperty::DoSave( parent, out, xmlparts, towrite );
78 if ( xmlparts == a2dXmlSer_attrib )
83 m_value.Save( parent, out, towrite );
87 void a2dFillProperty::DoLoad( wxObject* parent,
a2dIOHandlerXmlSerIn& parser, a2dXmlSer_flag xmlparts )
89 a2dNamedProperty::DoLoad( parent, parser, xmlparts );
90 if ( xmlparts == a2dXmlSer_attrib )
95 m_value.Load( parent, parser );
98 #endif //wxART2D_USE_CVGIO
100 void a2dFillProperty::SetValue(
const a2dFill& value )
107 return wxT(
"VOID" );
112 return wxT(
"VOID" );
129 a2dStrokeProperty::~a2dStrokeProperty()
136 m_value = ori->m_value;
142 m_value = other.m_value;
153 m_value = propcast->m_value;
161 #if wxART2D_USE_CVGIO
164 a2dNamedProperty::DoSave( parent, out, xmlparts, towrite );
165 if ( xmlparts == a2dXmlSer_attrib )
170 m_value.Save( parent, out, towrite );
174 void a2dStrokeProperty::DoLoad( wxObject* parent,
a2dIOHandlerXmlSerIn& parser, a2dXmlSer_flag xmlparts )
176 a2dNamedProperty::DoLoad( parent, parser, xmlparts );
177 if ( xmlparts == a2dXmlSer_attrib )
182 m_value.Load( parent, parser );
185 #endif //wxART2D_USE_CVGIO
187 void a2dStrokeProperty::SetValue(
const a2dStroke& value )
194 return wxT(
"VOID" );
199 return wxT(
"VOID" );
219 m_value = ori->m_value;
222 a2dFontProperty::~a2dFontProperty()
229 m_value = other.m_value;
240 m_value = propcast->m_value;
248 #if wxART2D_USE_CVGIO
251 a2dNamedProperty::DoSave( parent, out, xmlparts, towrite );
252 if ( xmlparts == a2dXmlSer_attrib )
261 void a2dFontProperty::DoLoad( wxObject* parent,
a2dIOHandlerXmlSerIn& parser, a2dXmlSer_flag xmlparts )
263 a2dNamedProperty::DoLoad( parent, parser, xmlparts );
264 if ( xmlparts == a2dXmlSer_attrib )
272 #endif //wxART2D_USE_CVGIO
274 void a2dFontProperty::SetValue(
const a2dFont& value )
281 return wxT(
"VOID" );
286 return wxT(
"VOID" );
virtual wxString StringValueRepresentation() const
(In) Visible property that can be added to Docview Objects.
Base class for all types of strokes, understood by a2dDrawer2D classes.
virtual wxString StringValueRepresentation() const
virtual wxString StringValueRepresentation() const
Defines a font to be set to a2dDrawer2D or stored in a2dCanvsObject etc.
Input and output handler for the XmlSer format.
The base class for all drawable objects in a a2dCanvasDocument.
property to hold a a2dFont type variable to be associated with a a2dObject
static a2dFontProperty * CreatePropertyFromString(const a2dPropertyIdFont *id, const wxString &value)
static a2dStrokeProperty * CreatePropertyFromString(const a2dPropertyIdStroke *id, const wxString &value)
#define wxStaticCast(obj, className)
The wxWindows 2.4.2 wxStaticCast is buggy. It evaluates its argument twice.
virtual wxString StringRepresentation() const
virtual wxString StringRepresentation() const
Input and output handler for the XmlSer format.
virtual void Assign(const a2dNamedProperty &other)
Virtual assignment operator.
virtual void Assign(const a2dNamedProperty &other)
Virtual assignment operator.
virtual void Assign(const a2dNamedProperty &other)
Virtual assignment operator.
property to hold a a2dStroke type variable to be associated with a a2dObject
style properties that are specific to the canvas modules.
This template class is for property ids with a known data type.
virtual wxString StringRepresentation() const
property to hold a a2dFill type variable to be associated with a a2dObject
static a2dFillProperty * CreatePropertyFromString(const a2dPropertyIdFill *id, const wxString &value)
CloneOptions
options for cloning
general canvas module declarations and classes