kword
KWAnchor Class Reference
#include <KWAnchor.h>
Inherits KoTextCustomItem.
Detailed Description
An anchor is a special character, or 'custom item'.It never appears as such. It is as big as the frame it is related to, so that the frame is effectively inline in the text.
Definition at line 34 of file KWAnchor.h.
Public Member Functions | |
KWAnchor (KoTextDocument *textdoc, KWFrameSet *frameset, int frameNum) | |
bool | ownLine () const |
virtual void | setFormat (KoTextFormat *) |
KWFrameSet * | frameSet () const |
int | frameNum () const |
QSize | size () const |
virtual void | resize () |
virtual void | finalize () |
virtual Placement | placement () const |
virtual int | widthHint () const |
virtual int | minimumWidth () const |
virtual int | ascent () const |
virtual void | draw (QPainter *p, int x, int y, int cx, int cy, int cw, int ch, const QColorGroup &cg, bool selected) |
virtual void | drawCustomItem (QPainter *, int, int, int, int, int, int, int, int, int, const QColorGroup &, bool, int, bool) |
virtual KCommand * | createCommand () |
virtual KCommand * | deleteCommand () |
virtual void | setDeleted (bool b) |
virtual void | save (QDomElement &formatElem) |
virtual void | saveOasis (KoXmlWriter &writer, KoSavingContext &context) const |
virtual int | typeId () const |
Constructor & Destructor Documentation
KWAnchor::KWAnchor | ( | KoTextDocument * | textdoc, | |
KWFrameSet * | frameset, | |||
int | frameNum | |||
) |
Constructor.
- Parameters:
-
textdoc the document this ancher will be one character of. frameset The frameset that is anchored. This frameset contains the content we are displaying. frameNum Which frame of the frameset (previos argument) is used for displaying.
Definition at line 30 of file KWAnchor.cpp.
Member Function Documentation
KWFrameSet* KWAnchor::frameSet | ( | ) | const [inline] |
The frameset that will provide the content to display in this anchor object.
Definition at line 50 of file KWAnchor.h.
int KWAnchor::frameNum | ( | ) | const [inline] |
The index the frameset needs to access which content is displayed in the anchor object.
Definition at line 52 of file KWAnchor.h.
QSize KWAnchor::size | ( | ) | const |
Return the size of the item, i.e.
the size of the frame (zoomed)
Definition at line 201 of file KWAnchor.cpp.
virtual void KWAnchor::drawCustomItem | ( | QPainter * | , | |
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
const QColorGroup & | , | |||
bool | , | |||
int | , | |||
bool | ||||
) | [inline, virtual] |
The documentation for this class was generated from the following files: