21 #include "object_imp.h" 22 #include "../misc/object_hierarchy.h" 23 #include "../misc/kigtransform.h" 45 static const ObjectImpType* stype();
48 void draw( KigPainter& p )
const;
49 bool contains(
const Coordinate& p,
int width,
const KigWidget& w )
const;
50 bool inRect(
const Rect& r,
int width,
const KigWidget& w )
const;
51 Rect surroundingRect()
const;
68 static const ObjectImpType* stype();
75 InvalidImp* copy()
const;
77 const ObjectImpType* type()
const;
78 void visit( ObjectImpVisitor* vtor )
const;
80 bool canFillInNextEscape()
const;
81 void fillInNextEscape( TQString& s,
const KigDocument& )
const;
83 bool equals(
const ObjectImp& rhs )
const;
97 static const ObjectImpType* stype();
103 DoubleImp(
const double d );
108 double data()
const {
return mdata; }
114 DoubleImp* copy()
const;
116 const ObjectImpType* type()
const;
117 void visit( ObjectImpVisitor* vtor )
const;
119 bool canFillInNextEscape()
const;
120 void fillInNextEscape( TQString& s,
const KigDocument& )
const;
122 bool equals(
const ObjectImp& rhs )
const;
136 static const ObjectImpType* stype();
142 IntImp(
const int d );
147 int data()
const {
return mdata; }
153 IntImp* copy()
const;
155 const ObjectImpType* type()
const;
156 void visit( ObjectImpVisitor* vtor )
const;
158 bool canFillInNextEscape()
const;
159 void fillInNextEscape( TQString& s,
const KigDocument& )
const;
161 bool equals(
const ObjectImp& rhs )
const;
175 static const ObjectImpType* stype();
181 StringImp(
const TQString& d );
186 const TQString&
data()
const {
return mdata; }
190 void setData(
const TQString& s ) { mdata = s; }
192 StringImp* copy()
const;
194 const ObjectImpType* type()
const;
195 void visit( ObjectImpVisitor* vtor )
const;
197 bool canFillInNextEscape()
const;
198 void fillInNextEscape( TQString& s,
const KigDocument& )
const;
200 bool equals(
const ObjectImp& rhs )
const;
206 ObjectHierarchy mdata;
208 static const ObjectImpType* stype();
211 HierarchyImp(
const ObjectHierarchy& h );
213 const ObjectHierarchy& data()
const {
return mdata; }
214 void setData(
const ObjectHierarchy& h ) { mdata = h; }
216 HierarchyImp* copy()
const;
217 const char* baseName()
const;
219 const ObjectImpType* type()
const;
220 void visit( ObjectImpVisitor* vtor )
const;
222 bool equals(
const ObjectImp& rhs )
const;
232 class TransformationImp
237 static const ObjectImpType* stype();
245 TransformationImp* copy()
const;
247 const ObjectImpType* type()
const;
248 void visit( ObjectImpVisitor* vtor )
const;
250 bool equals(
const ObjectImp& rhs )
const;
256 const TQString mdata;
258 static const ObjectImpType* stype();
261 TestResultImp(
const TQString& s );
263 TestResultImp* copy()
const;
265 const TQString& data()
const {
return mdata; }
267 const ObjectImpType* type()
const;
268 void visit( ObjectImpVisitor* vtor )
const;
270 const uint numberOfProperties()
const;
271 const QCStringList properties()
const;
272 const QCStringList propertiesInternalNames()
const;
273 ObjectImp* property( uint which,
const KigDocument& d )
const;
274 const char* iconForProperty( uint which )
const;
275 const ObjectImpType* impRequirementForProperty( uint which )
const;
276 bool isPropertyDefinedOnOrThroughThisImp( uint which )
const;
278 bool equals(
const ObjectImp& rhs )
const;
void setData(int d)
Set the contained data to d.
Definition: bogus_imp.h:151
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:218
double data() const
Get hold of the contained data.
Definition: bogus_imp.h:108
const TQString & data() const
Get hold of the contained data.
Definition: bogus_imp.h:186
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
int data() const
Get hold of the contained data.
Definition: bogus_imp.h:147
void setData(double d)
Set the contained data to d.
Definition: bogus_imp.h:112
void setData(const TQString &s)
Set the contained data.
Definition: bogus_imp.h:190