26#include <dcopobject.h>
27#include <koffice_export.h>
38class KoOasisLoadingContext;
91 virtual DCOPObject* dcopObject();
100 virtual void draw( VPainter* painter,
const KoRect* rect = 0L )
const
132 m_parent->invalidateBoundingBox();
184 virtual void setStroke(
const VStroke& stroke );
191 virtual void setFill(
const VFill& fill );
198 virtual void save( TQDomElement& element )
const;
207 virtual void saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &mainStyles,
int &index )
const;
215 virtual void load(
const TQDomElement& element );
224 virtual bool loadOasis(
const TQDomElement &element, KoOasisLoadingContext &context );
248 Q_UNUSED( newObject );
249 Q_UNUSED( oldObject );
257 virtual TQString name()
const;
264 void setName(
const TQString &s );
280 void addStyles(
const TQDomElement* style, KoOasisLoadingContext & context );
282 virtual void saveOasisFill( KoGenStyles &mainStyles, KoGenStyle &stylesojectauto )
const;
All non-visual, static doc info is in here.
Manages the fill of shapes.
The base class for all karbon objects.
bool m_boundingBoxIsInvalid
the flag stating if the bounding box is valid
DCOPObject * m_dcop
the object's DCOP object
bool boundingBoxIsInvalid() const
Checks if the bounding box is invalid and needs to be recalculated.
VObject(VObject *parent, VState state=edit)
Constructs a new object that is child of parent and has the given state.
virtual VObject * clone() const =0
Create an exact copy of this object.
virtual void setState(const VState state)
Sets the state to a specified new state.
VObject * parent() const
Returns pointer to current parent object.
virtual void accept(VVisitor &)
Accept a VVisitor.
@ normal_locked
visible, but locked (r/o)
@ hidden_locked
hidden and locked (r/o)
@ selected
visible, active and can be manipulated by tools
@ deleted
deleted, nearly dead
@ normal
visible, not active
@ edit
visible, active and is currently manipulated by a tool
VState m_state
the object's state
VStroke * m_stroke
the object's stroke
void setParent(VObject *parent)
Sets a new parent object.
virtual const KoRect & boundingBox() const
Calculates the tightest bounding box around the object.
VFill * m_fill
the object's fill
void invalidateBoundingBox()
Invalidates the bounding box, so it has to be recalculated.
virtual VFill * fill() const
Gets the object's actual fill.
KoRect m_boundingBox
the object's bounding box
virtual VStroke * stroke() const
Gets the object's actual stroke.
virtual void insertInfrontOf(VObject *newObject, VObject *oldObject)
This function is important for undo/redo.
virtual void draw(VPainter *painter, const KoRect *rect=0L) const
Draw the object to a painting device.
VState state() const
Get the state the object is in.
Manages stroke properties.
The abstract visitor class.