#include <KPrObject.h>
Inherits KPrObject.
Inherited by KPr2DObject, KPrLineObject, and KPrPointObject.
|
| bool | loadOasisDrawPoints (KoPointArray &points, const TQDomElement &element, KoOasisContext &context, KPrLoadingInfo *info) |
| |
| bool | loadOasisApplyViewBox (const TQDomElement &element, KoPointArray &points) |
| |
| virtual void | fillStyle (KoGenStyle &styleObjectAuto, KoGenStyles &mainStyles) const |
| |
| virtual KoPen | defaultPen () const |
| |
| virtual void | paint (TQPainter *, KoTextZoomHandler *, int, bool drawingShadow, bool=false) |
| |
Base class for objects with a pen and a brush, and which takes care of painting the shadow in draw() (by calling paint() twice)
Definition at line 405 of file KPrObject.h.
◆ KPrShadowObject() [1/2]
| KPrShadowObject::KPrShadowObject |
( |
| ) |
|
◆ KPrShadowObject() [2/2]
| KPrShadowObject::KPrShadowObject |
( |
const KoPen & |
_pen | ) |
|
◆ defaultPen()
| KoPen KPrShadowObject::defaultPen |
( |
| ) |
const |
|
protectedvirtual |
save() only saves if the pen is different from the default pen.
The default pen can vary depending on the subclass of KPrShadowObject (e.g. it's a black solidline for lines and rects, but it's NoPen for text objects
Definition at line 1961 of file KPrObject.cpp.
◆ draw()
| void KPrShadowObject::draw |
( |
TQPainter * |
_painter, |
|
|
KoTextZoomHandler * |
_zoomHandler, |
|
|
int |
pageNum, |
|
|
SelectionMode |
selectionMode, |
|
|
bool |
drawContour = false |
|
) |
| |
|
virtual |
◆ fillStyle()
| void KPrShadowObject::fillStyle |
( |
KoGenStyle & |
styleObjectAuto, |
|
|
KoGenStyles & |
mainStyles |
|
) |
| const |
|
protectedvirtual |
◆ getPen()
| virtual KoPen KPrShadowObject::getPen |
( |
| ) |
const |
|
inlinevirtual |
◆ load()
| double KPrShadowObject::load |
( |
const TQDomElement & |
element | ) |
|
|
virtual |
◆ loadOasis()
| void KPrShadowObject::loadOasis |
( |
const TQDomElement & |
element, |
|
|
KoOasisContext & |
context, |
|
|
KPrLoadingInfo * |
info |
|
) |
| |
|
virtual |
◆ loadOasisApplyViewBox()
| bool KPrShadowObject::loadOasisApplyViewBox |
( |
const TQDomElement & |
element, |
|
|
KoPointArray & |
points |
|
) |
| |
|
protected |
Apply the svg:viewBox attribute to the points.
This calculates the points of the object. It uses the size of the object and the viewBox attribute to calculate the object points. When no svg:viewBox is specified it is calculated form the supplied points.
- Parameters
-
| element | the xml element from which the viewBox attribute should be read. |
| points | which should be updated. |
Definition at line 1773 of file KPrObject.cpp.
◆ loadOasisDrawPoints()
| bool KPrShadowObject::loadOasisDrawPoints |
( |
KoPointArray & |
points, |
|
|
const TQDomElement & |
element, |
|
|
KoOasisContext & |
context, |
|
|
KPrLoadingInfo * |
info |
|
) |
| |
|
protected |
Helper method for loading draw:points.
The svg:viewBox is taken into account.
Definition at line 1756 of file KPrObject.cpp.
◆ operator=()
◆ paint()
| void KPrShadowObject::paint |
( |
TQPainter * |
painter, |
|
|
KoTextZoomHandler * |
zoomHandler, |
|
|
int |
pageNum, |
|
|
bool |
drawingShadow, |
|
|
bool |
drawContour = false |
|
) |
| |
|
protectedvirtual |
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. |
This method isn't pure virtual because some objects implement draw() directly.
Definition at line 1966 of file KPrObject.cpp.
◆ save()
| TQDomDocumentFragment KPrShadowObject::save |
( |
TQDomDocument & |
doc, |
|
|
double |
offset |
|
) |
| |
|
virtual |
◆ saveOasisDrawPoints()
| bool KPrShadowObject::saveOasisDrawPoints |
( |
const KoPointArray & |
points, |
|
|
KPOasisSaveContext & |
sc |
|
) |
| |
|
staticprotected |
Helper method for saving draw:points.
The svg:viewBox is also saved.
Definition at line 1732 of file KPrObject.cpp.
◆ saveOasisStrokeElement()
| void KPrShadowObject::saveOasisStrokeElement |
( |
KoGenStyles & |
mainStyles, |
|
|
KoGenStyle & |
styleobjectauto |
|
) |
| const |
|
virtual |
◆ saveOasisStrokeStyle()
| TQString KPrShadowObject::saveOasisStrokeStyle |
( |
KoGenStyles & |
mainStyles | ) |
const |
◆ setPen()
| virtual void KPrShadowObject::setPen |
( |
const KoPen & |
_pen | ) |
|
|
inlinevirtual |
◆ pen
| KoPen KPrShadowObject::pen |
|
protected |
The documentation for this class was generated from the following files:
|