KWAnchor.cpp
54 kdDebug(32001) << this << " KWAnchor::finalize " << x() << "," << y() << " paragx=" << paragx << " paragy=" << paragy << endl;
60 //kdDebug(32001) << "KWAnchor::finalize moving frame to " << dPoint.x() << "," << dPoint.y() << endl;
66 kdDebug(32001) << "KWAnchor::move internalToDocument returned 0L for " << x()+paragx << ", " << y()+paragy << endl;
70void KWAnchor::draw( TQPainter* p, int x, int y, int cx, int cy, int cw, int ch, const TQColorGroup& cg, bool selected )
91 kdDebug(32001) << "KWAnchor::draw x:" << x << ", y:" << y << " paragx=" << paragx << " paragy=" << paragy << endl;
142 while ( !frameIt.atFirst() && frameIt.current() != containingFrame ) // look for 'containingFrame'
166 // (It does translate(view - internal), so we do translate(internal - view) - e.g. with (0,0) for internal)
256 // Do this first, because setAnchored->updateAllFrames->isDeleted, so it must have the right value already
281 else // special case for inline tables [which are not alone in their paragraph, see KWTextParag]
KWAnchor(KoTextDocument *textdoc, KWFrameSet *frameset, int frameNum)
Constructor.
Definition KWAnchor.cpp:30
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Definition KWFrameSet.h:62
virtual void moveFloatingFrame(int frameNum, const KoPoint &position)
Move the frame frameNum to the given position - this is called when the frame is anchored and the anc...
Definition KWFrameSet.cpp:443
virtual void setAnchorFormat(KoTextFormat *, int)
Tell this frame the format of it's anchor.
Definition KWFrameSet.h:380
static KWFrame * settingsFrame(const KWFrame *frame)
Returns the original frame that the param frame is a copy off, or the frame itself.
Definition KWFrameSet.cpp:524
const TQPtrList< KWFrame > & frameIterator() const
Iterator over the child frames.
Definition KWFrameSet.h:159
virtual bool canBeSavedAsInlineCharacter() const
If the frameset is inline, is it ok to save it inside an oasis <text:p>? If not, KWAnchor will create...
Definition KWFrameSet.h:326
virtual void drawContents(TQPainter *painter, const TQRect &crect, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrameViewManager *frameViewManager)
Paint this frameset.
Definition KWFrameSet.cpp:632
void setAnchored(KWTextFrameSet *textfs, KoTextParag *parag, int index, bool placeHolderExists=false, bool repaint=true)
Make this frameset anchored, with the anchor at paragId,index in the text frameset textfs.
Definition KWFrameSet.cpp:314
virtual int floatingFrameBaseline(int)
Get the 'baseline' to use for the "floating frame" identified by frameNum.
Definition KWFrameSet.h:397
virtual KoSize floatingFrameSize(int frameNum=0)
Get the size of the "floating frame" identified by frameNum.
Definition KWFrameSet.cpp:482
TQString name() const
get/set frameset name. For tables in particular, this must be unique
Definition KWFrameSet.h:428
virtual KCommand * anchoredObjectCreateCommand(int frameNum)
Store command for creating an anchored object.
Definition KWFrameSet.cpp:489
virtual void saveOasis(KoXmlWriter &writer, KoSavingContext &context, bool saveFrames) const =0
Save to OASIS format.
virtual KCommand * anchoredObjectDeleteCommand(int frameNum)
Store command for deleting an anchored object.
Definition KWFrameSet.cpp:496
Class that knows about all the (visible) frames in the document and will act as a manager between the...
Definition KWFrameViewManager.h:51
bool isCopy() const
Drawing property: if isCopy, this frame is a copy of the previous frame in the frameset.
Definition KWFrame.h:138
This is our KoTextDocument reimplementation, to create KWTextParag instead of KoTextParags,...
Definition KWTextDocument.h:36
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.
Definition KWTextFrameSet.h:64
KoPoint internalToDocumentKnowingFrame(const KoPoint &relPoint, KWFrame *theFrame) const
A variant of internalToDocument, when the frame is already known.
Definition KWTextFrameSet.cpp:429
KWFrame * internalToDocument(const KoPoint &relPoint, KoPoint &dPoint) const
Convert the in the internal qtextdoc coordinates (in layout units) into a point in the document coord...
Definition KWTextFrameSet.cpp:1526
KWViewMode * currentViewMode() const
The viewmode that was passed to drawContents.
Definition KWTextFrameSet.h:267
KWFrame * currentDrawnFrame() const
The frame that we are currently drawing in drawFrame.
Definition KWTextFrameSet.h:270
virtual TQPoint normalToView(const TQPoint &nPoint)=0
Normal coord -> view coord.
