karbon
VGroup Class Reference
#include <vgroup.h>
Inheritance diagram for VGroup:

Detailed Description
Base class for all sort of VObject conglomerats.
Definition at line 34 of file vgroup.h.
Public Member Functions | |
VGroup (VObject *parent, VState state=normal) | |
VGroup (const VGroup &group) | |
virtual | ~VGroup () |
virtual void | draw (VPainter *painter, const KoRect *rect=0L) const |
virtual const KoRect & | boundingBox () const |
virtual void | setStroke (const VStroke &stroke) |
virtual void | setFill (const VFill &fill) |
virtual void | setState (const VState state) |
virtual void | save (QDomElement &element) const |
virtual void | saveOasis (KoStore *store, KoXmlWriter *docWriter, KoGenStyles &mainStyles, int &index) const |
virtual void | load (const QDomElement &element) |
virtual bool | loadOasis (const QDomElement &element, KoOasisLoadingContext &context) |
virtual VGroup * | clone () const |
virtual void | accept (VVisitor &visitor) |
void | take (const VObject &object) |
void | append (VObject *object) |
virtual void | insertInfrontOf (VObject *newObject, VObject *oldObject) |
void | clear () |
const VObjectList & | objects () const |
Protected Attributes | |
VObjectList | m_objects |
Constructor & Destructor Documentation
|
Constructs a new group object that is child of parent and has the given state. The object's fill and stroke are created here.
|
|
Copy constructor.
|
|
Destroys the group and all of the child objects.
|
Member Function Documentation
|
Accept a VVisitor.
Reimplemented from VObject. Reimplemented in VLayer. |
|
Appends a new child object.
|
|
Calculates the tightest bounding box around the object.
Reimplemented from VObject. |
|
Clears the group, without destroying the grouped objects.
|
|
Create an exact copy of this object.
Implements VObject. Reimplemented in VClipGroup, and VLayer. |
|
Draw the object to a painting device.
Reimplemented from VObject. Reimplemented in VClipGroup, and VLayer. |
|
This function is important for undo/redo. It inserts newObject in front of oldObject.
Reimplemented from VObject. |
|
Load this object's state from xml and initialize this object accordingly.
Reimplemented from VObject. Reimplemented in VClipGroup, and VLayer. |
|
Load this object's state from OpenDocument and initialize this object accordingly.
Reimplemented from VObject. |
|
Read only access to the grouped objects.
|
|
Save this object's state to xml.
Reimplemented from VObject. Reimplemented in VClipGroup, and VLayer. |
|
Save this object's state to OpenDocument.
Reimplemented from VObject. Reimplemented in VLayer. |
|
Sets the fill to a given new fill.
Reimplemented from VObject. |
|
Sets the state to a specified new state. Note that this will not have any visual effect until draw() is called on this object.
Reimplemented from VObject. |
|
Sets the stroke to a given new stroke.
Reimplemented from VObject. |
|
Removes the reference to child object, not the object itself.
|
Member Data Documentation
|
the list of grouped objects
|
The documentation for this class was generated from the following files: