#include <KWAnchor.h>
Inherits KoTextCustomItem.
|
| | KWAnchor (KoTextDocument *textdoc, KWFrameSet *frameset, int frameNum) |
| |
| bool | ownLine () const |
| |
| virtual void | setFormat (KoTextFormat *) |
| |
| KWFrameSet * | frameSet () const |
| |
| int | frameNum () const |
| |
| TQSize | 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 (TQPainter *p, int x, int y, int cx, int cy, int cw, int ch, const TQColorGroup &cg, bool selected) |
| |
| virtual void | drawCustomItem (TQPainter *, int, int, int, int, int, int, int, int, int, const TQColorGroup &, bool, int, bool) |
| |
| virtual KCommand * | createCommand () |
| |
| virtual KCommand * | deleteCommand () |
| |
| virtual void | setDeleted (bool b) |
| |
| virtual void | save (TQDomElement &formatElem) |
| |
| virtual void | saveOasis (KoXmlWriter &writer, KoSavingContext &context) const |
| |
| virtual int | typeId () const |
| |
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.
◆ KWAnchor()
| 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.
◆ ~KWAnchor()
◆ ascent()
| int KWAnchor::ascent |
( |
| ) |
const |
|
virtual |
◆ createCommand()
| KCommand * KWAnchor::createCommand |
( |
| ) |
|
|
virtual |
◆ deleteCommand()
| KCommand * KWAnchor::deleteCommand |
( |
| ) |
|
|
virtual |
◆ draw()
| void KWAnchor::draw |
( |
TQPainter * |
p, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
cx, |
|
|
int |
cy, |
|
|
int |
cw, |
|
|
int |
ch, |
|
|
const TQColorGroup & |
cg, |
|
|
bool |
selected |
|
) |
| |
|
virtual |
◆ drawCustomItem()
| virtual void KWAnchor::drawCustomItem |
( |
TQPainter * |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
, |
|
|
const TQColorGroup & |
, |
|
|
bool |
, |
|
|
int |
, |
|
|
bool |
|
|
) |
| |
|
inlinevirtual |
Never called since we reimplement draw.
Definition at line 69 of file KWAnchor.h.
◆ finalize()
| void KWAnchor::finalize |
( |
| ) |
|
|
virtual |
◆ frameNum()
| 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.
◆ frameSet()
The frameset that will provide the content to display in this anchor object.
Definition at line 50 of file KWAnchor.h.
◆ minimumWidth()
| virtual int KWAnchor::minimumWidth |
( |
| ) |
const |
|
inlinevirtual |
◆ ownLine()
| bool KWAnchor::ownLine |
( |
| ) |
const |
◆ placement()
| virtual Placement KWAnchor::placement |
( |
| ) |
const |
|
inlinevirtual |
◆ resize()
| void KWAnchor::resize |
( |
| ) |
|
|
virtual |
◆ save()
| void KWAnchor::save |
( |
TQDomElement & |
formatElem | ) |
|
|
virtual |
◆ saveOasis()
| void KWAnchor::saveOasis |
( |
KoXmlWriter & |
writer, |
|
|
KoSavingContext & |
context |
|
) |
| const |
|
virtual |
◆ setDeleted()
| void KWAnchor::setDeleted |
( |
bool |
b | ) |
|
|
virtual |
◆ setFormat()
| void KWAnchor::setFormat |
( |
KoTextFormat * |
format | ) |
|
|
virtual |
◆ size()
| TQSize 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.
◆ typeId()
| virtual int KWAnchor::typeId |
( |
| ) |
const |
|
inlinevirtual |
◆ widthHint()
| virtual int KWAnchor::widthHint |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files:
|