kpresenter
KPrClosedLineObject Class Reference
Inheritance diagram for KPrClosedLineObject:

Detailed Description
Definition at line 34 of file KPrClosedLineObject.h.
Public Member Functions | |
KPrClosedLineObject () | |
KPrClosedLineObject (const KoPointArray &_points, const KoSize &_size, const KoPen &_pen, const QBrush &_brush, FillType _fillType, const QColor &_gColor1, const QColor &_gColor2, BCType _gType, bool _unbalanced, int _xfactor, int _yfactor, const QString _type) | |
KPrClosedLineObject (const KPrPointObject &object) | |
virtual | ~KPrClosedLineObject () |
KPrClosedLineObject & | operator= (const KPrClosedLineObject &) |
virtual void | setSize (double _width, double _height) |
virtual void | setSize (const KoSize &_size) |
virtual ObjType | getType () const |
virtual QString | getTypeString () const |
virtual QDomDocumentFragment | save (QDomDocument &doc, double offset) |
virtual double | load (const QDomElement &element) |
virtual void | loadOasis (const QDomElement &element, KoOasisContext &context, KPrLoadingInfo *info) |
virtual void | flip (bool horizontal) |
virtual KoSize | getRealSize () const |
virtual KoPoint | getRealOrig () const |
Protected Member Functions | |
virtual const char * | getOasisElementName () const |
virtual bool | saveOasisObjectAttributes (KPOasisSaveContext &sc) const |
virtual void | paint (QPainter *_painter, KoTextZoomHandler *_zoomHandler, int, bool drawingShadow, bool drawContour) |
void | updatePoints (double _fx, double _fy) |
Protected Attributes | |
KoPointArray | points |
QString | typeString |
Constructor & Destructor Documentation
KPrClosedLineObject::KPrClosedLineObject | ( | const KPrPointObject & | object | ) |
Construct object form a KPrPointObject.
This constructor is used when a KPrPointObject objects gets closed. It is then changed into a KPrClosedLineObject.
- Parameters:
-
object form which the KPrClosedLineObject is constructed
Definition at line 57 of file KPrClosedLineObject.cpp.
Member Function Documentation
const char * KPrClosedLineObject::getOasisElementName | ( | ) | const [protected, virtual] |
Get the element name for saving the object.
Implements KPrObject.
Definition at line 132 of file KPrClosedLineObject.cpp.
void KPrClosedLineObject::paint | ( | QPainter * | _painter, | |
KoTextZoomHandler * | _zoomHandler, | |||
int | , | |||
bool | drawingShadow, | |||
bool | drawContour | |||
) | [protected, virtual] |
This method is to be implemented by all KPShadowObjects, to draw themselves.
draw() took care of the shadow and of preparing painter
for rotation. paint() must take care of the gradient itself!
- Parameters:
-
drawingShadow true if called to draw the shadow of the object. Usually objects will want to draw a simpler version of themselves in that case.
Reimplemented from KPrShadowObject.
Definition at line 197 of file KPrClosedLineObject.cpp.
The documentation for this class was generated from the following files: