kword
KWPictureFrameSet Class Reference
Inheritance diagram for KWPictureFrameSet:

Detailed Description
Definition at line 27 of file KWPictureFrameSet.h.
Public Member Functions | |
KWPictureFrameSet (KWDocument *_doc, const QString &name) | |
KWPictureFrameSet (KWDocument *doc, const QDomElement &frame, const QDomElement &imageTag, KoOasisContext &context) | |
virtual | ~KWPictureFrameSet () |
virtual KWordFrameSetIface * | dcopObject () |
virtual FrameSetType | type () const |
void | setPicture (const KoPicture &picture) |
KoPicture | picture () const |
KoPictureKey | key () const |
void | loadPicture (const QString &fileName) |
void | insertPicture (const KoPicture &picture) |
void | reloadPicture (const KoPictureKey &key) |
virtual QDomElement | save (QDomElement &parentElem, bool saveFrames=true) |
virtual void | load (QDomElement &attributes, bool loadFrames=true) |
virtual void | saveOasis (KoXmlWriter &writer, KoSavingContext &context, bool saveFrames) const |
virtual void | drawFrameContents (KWFrame *frame, QPainter *painter, const QRect &crect, const QColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode) |
virtual void | createEmptyRegion (const QRect &, QRegion &, KWViewMode *) |
virtual void | printDebug (KWFrame *frame) |
bool | keepAspectRatio () const |
void | setKeepAspectRatio (bool b) |
virtual void | setProtectContent (bool) |
virtual bool | protectContent () const |
Protected Member Functions | |
void | loadOasis (const QDomElement &frame, const QDomElement &imageTag, KoOasisContext &context) |
Protected Attributes | |
KoPicture | m_picture |
bool | m_keepAspectRatio |
bool | m_finalSize |
Constructor & Destructor Documentation
|
Used for OASIS loading.
Definition at line 44 of file KWPictureFrameSet.cpp. |
Member Function Documentation
|
Pixmaps can be transparent.
Reimplemented from KWFrameSet. Definition at line 66 of file KWPictureFrameSet.h. |
|
Implement this one instead of drawFrame to benefit from double-buffering AND transparency handling (painting frames below this one) automatically. You MUST reimplement one or the other, or you'll get infinite recursion ;) In this method, the painter has been translated to the frame's coordinate system
Reimplemented from KWFrameSet. Definition at line 224 of file KWPictureFrameSet.cpp. |
|
load from XML - when loading
Reimplemented from KWFrameSet. Definition at line 104 of file KWPictureFrameSet.cpp. |
|
This method is part of the KWFrameSet API and is left empty here, protect content is irrelevant for picture frame sets.
Implements KWFrameSet. Definition at line 84 of file KWPictureFrameSet.h. |
|
Reload a picture, which already exists in the picture collection (if not, it gives a defaulft KoPicture() ).
Definition at line 78 of file KWPictureFrameSet.cpp. |
|
save to XML - when saving
Implements KWFrameSet. Definition at line 85 of file KWPictureFrameSet.cpp. |
|
Save to OASIS format.
Implements KWFrameSet. Definition at line 155 of file KWPictureFrameSet.cpp. |
|
This method is part of the KWFrameSet API and is left empty here, protect content is irrelevant for picture frame sets.
Implements KWFrameSet. Definition at line 79 of file KWPictureFrameSet.h. |
|
The type of frameset. Use this to differentiate between different instantiations of the framesets. Each implementation will return a different frameType. Reimplemented from KWFrameSet. Definition at line 234 of file KWPictureFrameSet.cpp. |
Member Data Documentation
|
Cache the finalSize parameter of the method resizeFrame for drawFrame.
Definition at line 93 of file KWPictureFrameSet.h. |
|
The picture.
Definition at line 90 of file KWPictureFrameSet.h. |
The documentation for this class was generated from the following files: