kpresenter
KPrObject Class Reference
Inheritance diagram for KPrObject:

Detailed Description
Definition at line 59 of file KPrObject.h.
Public Member Functions | |
KPrObject () | |
virtual | ~KPrObject () |
virtual DCOPObject * | dcopObject () |
virtual void | setSelected (bool _selected) |
virtual void | rotate (float _angle) |
virtual void | setSize (const KoSize &_size) |
virtual void | setSize (double _width, double _height) |
virtual void | setOrig (const KoPoint &_point) |
virtual void | setOrig (double _x, double _y) |
virtual void | moveBy (const KoPoint &_point) |
virtual void | moveBy (double _dx, double _dy) |
virtual void | resizeBy (const KoSize &_size) |
virtual void | resizeBy (double _dx, double _dy) |
virtual void | setShadowParameter (int _distance, ShadowDirection _direction, const QColor &_color) |
virtual void | setShadowDistance (int _distance) |
virtual void | setShadowDirection (ShadowDirection _direction) |
virtual void | setShadowColor (const QColor &_color) |
virtual void | setEffect (Effect _effect) |
virtual void | setEffect2 (Effect2 _effect2) |
virtual void | setAppearStep (int _appearStep) |
virtual void | setDisappear (bool b) |
virtual void | setDisappearStep (int num) |
virtual void | setEffect3 (Effect3 _effect3) |
virtual void | setAppearSpeed (EffectSpeed _speed) |
virtual void | setDisappearSpeed (EffectSpeed _speed) |
virtual void | setAppearTimer (int _appearTimer) |
virtual void | setDisappearTimer (int _disappearTimer) |
virtual void | setAppearSoundEffect (bool b) |
virtual void | setDisappearSoundEffect (bool b) |
virtual void | setAppearSoundEffectFileName (const QString &_a_fileName) |
virtual void | setDisappearSoundEffectFileName (const QString &_d_fileName) |
virtual void | setObjectName (const QString &_objectName) |
virtual QString | getObjectName () 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 bool | saveOasisObject (KPOasisSaveContext &sc) const |
bool | saveOasisObjectStyleShowAnimation (KoXmlWriter &animation, int objectId) |
bool | saveOasisObjectStyleHideAnimation (KoXmlWriter &animation, int objectId) |
virtual void | flip (bool horizontal) |
virtual ObjType | getType () const |
virtual QString | getTypeString () const |
virtual bool | isSelected () const |
virtual float | getAngle () const |
virtual int | getShadowDistance () const |
virtual ShadowDirection | getShadowDirection () const |
virtual QColor | getShadowColor () const |
virtual KoSize | getSize () const |
virtual KoPoint | getOrig () const |
KoRect | getRect () const |
virtual KoSize | getRealSize () const |
virtual KoPoint | getRealOrig () const |
KoRect | getRealRect () const |
KoRect | getRepaintRect () const |
virtual Effect | getEffect () const |
virtual Effect2 | getEffect2 () const |
virtual Effect3 | getEffect3 () const |
virtual EffectSpeed | getAppearSpeed () const |
virtual EffectSpeed | getDisappearSpeed () const |
virtual int | getAppearTimer () const |
virtual int | getDisappearTimer () const |
virtual bool | getAppearSoundEffect () const |
virtual bool | getDisappearSoundEffect () const |
virtual QString | getAppearSoundEffectFileName () const |
virtual QString | getDisappearSoundEffectFileName () const |
virtual int | getAppearStep () const |
virtual int | getSubPresSteps () const |
virtual bool | getDisappear () const |
virtual int | getDisappearStep () const |
virtual void | setOwnClipping (bool _ownClipping) |
virtual void | setSubPresStep (int _subPresStep) |
virtual void | doSpecificEffects (bool _specEffects, bool _onlyCurrStep=true) |
virtual void | draw (QPainter *_painter, KoTextZoomHandler *_zoomHandler, int, SelectionMode selectionMode, bool drawContour=FALSE) |
virtual bool | contains (const KoPoint &point) const |
virtual bool | intersects (const KoRect &rect) const |
virtual QCursor | getCursor (const KoPoint &_point, ModifyType &_modType, KPrDocument *doc) const |
KoRect | rotateRectObject () const |
void | rotateObject (QPainter *paint, KoTextZoomHandler *_zoomHandler) |
virtual void | removeFromObjList () |
virtual void | addToObjList () |
virtual void | incCmdRef () |
virtual void | decCmdRef () |
virtual void | setProtect (bool b) |
bool | isProtect () const |
virtual void | setKeepRatio (bool b) |
bool | isKeepRatio () const |
void | paintSelection (QPainter *_painter, KoTextZoomHandler *_zoomHandler, SelectionMode selectionMode) |
virtual void | addTextObjects (QPtrList< KoTextObject > &) const |
virtual KPrTextObject * | nextTextObject () |
virtual void | getAllObjectSelectedList (QPtrList< KPrObject > &lst, bool force=false) |
virtual KoPen | getPen () const |
bool | hasAnimation () const |
void | addSelfToGuides (QValueList< double > &horizontalPos, QValueList< double > &verticalPos) |
Static Public Member Functions | |
static void | setupClipRegion (QPainter *painter, const QRegion &clipRegion) |
Protected Member Functions | |
void | getShadowCoords (double &_x, double &_y) const |
virtual void | doDelete () |
QDomElement | createValueElement (const QString &tag, int value, QDomDocument &doc) |
QDomElement | createGradientElement (const QString &tag, const QColor &c1, const QColor &c2, int type, bool unbalanced, int xfactor, int yfactor, QDomDocument &doc) |
QDomElement | createPenElement (const QString &tag, const KoPen &pen, QDomDocument &doc) |
KoPen | toPen (const QDomElement &element) const |
QDomElement | createBrushElement (const QString &tag, const QBrush &brush, QDomDocument &doc) |
QBrush | toBrush (const QDomElement &element) const |
QColor | retrieveColor (const QDomElement &element, const QString &cattr="color", const QString &rattr="red", const QString &gattr="green", const QString &battr="blue") const |
void | saveOasisObjectProtectStyle (KoGenStyle &styleobjectauto) const |
void | saveOasisShadowElement (KoGenStyle &styleobjectauto) const |
QString | getStyle (KPOasisSaveContext &sc) const |
virtual void | fillStyle (KoGenStyle &styleObjectAuto, KoGenStyles &mainStyles) const |
virtual const char * | getOasisElementName () const =0 |
virtual bool | saveOasisObjectAttributes (KPOasisSaveContext &sc) const |
virtual void | saveOasisPosObject (KoXmlWriter &xmlWriter, int indexObj) const |
Static Protected Member Functions | |
static void | getRealSizeAndOrigFromPoints (KoPointArray &points, float angle, KoSize &size, KoPoint &orig) |
Protected Attributes | |
float | angle |
KoPoint | orig |
KoSize | ext |
int | shadowDistance |
ShadowDirection | shadowDirection |
QColor | shadowColor |
Effect | effect |
Effect2 | effect2 |
Effect3 | effect3 |
EffectSpeed | m_appearSpeed |
EffectSpeed | m_disappearSpeed |
int | appearTimer |
int | disappearTimer |
QString | a_fileName |
QString | d_fileName |
QString | objectName |
int | appearStep |
int | disappearStep |
bool | disappear:1 |
bool | appearSoundEffect:1 |
bool | disappearSoundEffect:1 |
bool | selected:1 |
bool | specEffects:1 |
bool | onlyCurrStep:1 |
bool | ownClipping:1 |
bool | inObjList:1 |
bool | resize:1 |
bool | protect:1 |
bool | keepRatio:1 |
int | subPresStep |
int | cmds |
DCOPObject * | dcop |
Static Protected Attributes | |
static const QString & | tagORIG = KGlobal::staticQString("ORIG") |
static const QString & | attrX = KGlobal::staticQString("x") |
static const QString & | attrY = KGlobal::staticQString("y") |
static const QString & | tagSIZE = KGlobal::staticQString("SIZE") |
static const QString & | attrWidth = KGlobal::staticQString("width") |
static const QString & | attrHeight = KGlobal::staticQString("height") |
static const QString & | tagSHADOW = KGlobal::staticQString("SHADOW") |
static const QString & | attrDistance = KGlobal::staticQString("distance") |
static const QString & | attrDirection = KGlobal::staticQString("direction") |
static const QString & | attrColor = KGlobal::staticQString("color") |
static const QString & | attrC1 = KGlobal::staticQString("color1") |
static const QString & | attrC2 = KGlobal::staticQString("color2") |
static const QString & | attrType = KGlobal::staticQString("type") |
static const QString & | attrUnbalanced = KGlobal::staticQString("unbalanced") |
static const QString & | attrXFactor = KGlobal::staticQString("xfactor") |
static const QString & | attrYFactor = KGlobal::staticQString("yfactor") |
static const QString & | attrStyle = KGlobal::staticQString("style") |
static const QString & | tagEFFECTS = KGlobal::staticQString("EFFECTS") |
static const QString & | attrEffect = KGlobal::staticQString("effect") |
static const QString & | attrEffect2 = KGlobal::staticQString("effect2") |
static const QString & | tagPRESNUM = KGlobal::staticQString("PRESNUM") |
static const QString & | tagANGLE = KGlobal::staticQString("ANGLE") |
static const QString & | tagDISAPPEAR = KGlobal::staticQString("DISAPPEAR") |
static const QString & | attrDoit = KGlobal::staticQString("doit") |
static const QString & | attrNum = KGlobal::staticQString("num") |
static const QString & | tagFILLTYPE = KGlobal::staticQString("FILLTYPE") |
static const QString & | tagGRADIENT = KGlobal::staticQString("GRADIENT") |
static const QString & | tagPEN = KGlobal::staticQString("PEN") |
static const QString & | tagBRUSH = KGlobal::staticQString("BRUSH") |
static const QString & | attrValue = KGlobal::staticQString("value") |
Classes | |
struct | KPOasisSaveContext |
Member Function Documentation
|
Adds its edges to the KoGuides objectCollect all textobjects.
Definition at line 1625 of file KPrObject.cpp. |
|
Collect all textobjects. (KPrTextObject returns the object it contains, a KPrGroupObject returns all the text objects it contains) Reimplemented in KPrGroupObject, and KPrTextObject. Definition at line 295 of file KPrObject.h. |
|
Check if point lies in rect of object.
Definition at line 1247 of file KPrObject.cpp. |
|
get the step when the object appears on the site
Definition at line 222 of file KPrObject.h. |
|
get the step when the object disappears from the site
Definition at line 231 of file KPrObject.h. |
|
Get the element name for saving the object.
Implemented in KPrAutoformObject, KPrBezierCurveObject, KPrClosedLineObject, KPrEllipseObject, KPrFreehandObject, KPrGroupObject, KPrLineObject, KPrPartObject, KPrPieObject, KPrPixmapObject, KPrPointObject, KPrPolygonObject, KPrPolylineObject, KPrRectObject, and KPrTextObject. |
|
Helper function to caluclate the size and the orig of a point object that might be also rotated. The size and orig will be changed to the real size and orig in the method. Definition at line 1580 of file KPrObject.cpp. |
|
Get the rect which has to be repainted. This also contains the shadow. Definition at line 1169 of file KPrObject.cpp. |
|
Modifies x and y to add the shadow offsets.
Definition at line 1353 of file KPrObject.cpp. |
|
Check if rect intersects with rect of object.
Definition at line 1252 of file KPrObject.cpp. |
The documentation for this class was generated from the following files: