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();
209 typedef BogusImp Parent;
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();
238 typedef BogusImp Parent;
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();
259 typedef BogusImp Parent;
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;
StringObject * copy() const
Returns a copy of this Object.
int data() const
Get hold of the contained data.
Definition: bogus_imp.h:147
InvalidObject()
Construct a new InvalidObject.
Coordinate attachPoint() const
Returns a reference point where to attach labels; when this returns an invalidCoord then the attachme...
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.
static const ObjectType * stype()
Returns the ObjectType representing the StringObject type.
static const ObjectType * stype()
Returns the ObjectType representing the InvalidObject type.
bool equals(const Object &rhs) const
Returns true if this Object is equal to rhs.
virtual bool equals(const Object &rhs) const =0
Returns true if this Object is equal to rhs.
bool equals(const Object &rhs) const
Returns true if this Object is equal to rhs.
void setData(const TQString &s)
Set the contained data.
Definition: bogus_imp.h:190
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.
static const ObjectType * stype()
Returns the ObjectType representing the BogusObject type.
double data() const
Get hold of the contained data.
Definition: bogus_imp.h:108
IntObject * copy() const
Returns a copy of this Object.
void setData(double d)
Set the contained data to d.
Definition: bogus_imp.h:112
virtual Object * copy() const =0
Returns a copy of this Object.
static const ObjectType * stype()
Returns the ObjectType representing the DoubleObject type.
Object * transform(const Transformation &) const
Return this Object, transformed by the transformation t.
bool equals(const Object &rhs) const
Returns true if this Object is equal to rhs.
The Object class represents the behaviour of an object after it is calculated.
Definition: object_imp.h:218
Instances of this class represent a certain Object type.
Definition: object_imp.h:88
StringObject(const TQString &d)
Construct a new StringObject containing the string d.
virtual const ObjectType * type() const =0
Returns the lowermost ObjectType that this object is an instantiation of.
bool equals(const Object &rhs) const
Returns true if this Object is equal to rhs.
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.
This is the base class for the so-called BogusObject's.
Definition: bogus_imp.h:37
InvalidObject * copy() const
Returns a copy of this Object.
void setData(int d)
Set the contained data to d.
Definition: bogus_imp.h:151
DoubleObject(const double d)
Construct a new DoubleObject containing the value d.
This Object is a BogusObject containing only an int value.
Definition: bogus_imp.h:128
static const ObjectType * stype()
Returns the ObjectType representing the IntObject type.
const ObjectType * type() const
Returns the lowermost ObjectType that this object is an instantiation of.
This Object is a BogusObject containing only a double value.
Definition: bogus_imp.h:89
IntObject(const int d)
Construct a new IntObject containing the value d.
The Coordinate class is the basic class representing a 2D location by its x and y components.
Definition: coordinate.h:33
DoubleObject * copy() const
Returns a copy of this Object.
This Object is a BogusObject containing only a string value.
Definition: bogus_imp.h:167
const TQString & data() const
Get hold of the contained data.
Definition: bogus_imp.h:186
This Object represents an invalid object.
Definition: bogus_imp.h:61
This file is part of the documentation for tdelibs .
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Jul 13 2024 12:35:26 by
doxygen 1.8.17 written by
Dimitri van Heesch, © 1997-2001