KWFrameSet.h
78 virtual void addTextFrameSets( TQPtrList<KWTextFrameSet> & /*lst*/, bool /*onlyReadWrite*/ = false ) {};
126 void deleteFrame( KWFrame *frm, bool remove = true, bool recalc = true ); // calls the virtual one
143 bool isFrameAtPos( const KWFrame* frame, const TQPoint& nPoint, bool borderOfFrameOnly=false ) const;
185 virtual void createEmptyRegion( const TQRect & crect, TQRegion & emptyRegion, KWViewMode *viewMode );
265 virtual void drawFrame( KWFrame *frame, TQPainter *painter, const TQRect &fcrect, const TQRect &crect,
293 virtual void drawPadding( KWFrame *frame, TQPainter *p, const TQRect &fcrect, const TQColorGroup &cg, KWViewMode *viewMode);
323 virtual void saveOasis( KoXmlWriter& writer, KoSavingContext& context, bool saveFrames ) const = 0;
345 virtual bool statistics( TQProgressDialog * /*progress*/, ulong & /*charsWithSpace*/, ulong & /*charsWithoutSpace*/, ulong & /*words*/,
346 ulong & /*sentences*/, ulong & /*syllables*/, ulong & /*lines*/, bool /*process only selected */ ) { return true; }
362 void setAnchored( KWTextFrameSet* textfs, KoTextParag* parag, int index, bool placeHolderExists = false, bool repaint = true );
366 void setAnchored( KWTextFrameSet* textfs, int paragId, int index, bool placeHolderExists = false, bool repaint = true );
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
Definition KWCanvas.h:61
This object is created to edit a particular frameset in a particular view The view's canvas creates i...
Definition KWFrameSetEdit.h:51
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Definition KWFrameSet.h:62
void drawFrameAndBorders(KWFrame *frame, TQPainter *painter, const TQRect &crect, const TQColorGroup &cg, bool, bool, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrame *settingsFrame, bool drawUnderlyingFrames)
This one is called by drawContents for each frame.
Definition KWFrameSet.cpp:682
void repaintChanged(KWFrameSet *frameset)
Emitted when something has changed in this frameset, so that all views repaint it.
KWAnchor * findAnchor(int frameNum)
Return the anchor object for this frame number.
Definition KWFrameSet.cpp:343
virtual void layout()
relayout text in frames, so that it flows correctly around other frames
Definition KWFrameSet.h:314
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
void drawFrameBorder(TQPainter *painter, KWFrame *frame, KWFrame *settingsFrame, const TQRect &crect, KWViewMode *viewMode)
Paint the borders for one frame of this frameset.
Definition KWFrameSet.cpp:237
virtual void deleteFrame(unsigned int num, bool remove=true, bool recalc=true)
Delete a frame from the set of frames this frameSet has.
Definition KWFrameSet.cpp:93
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
void setNewFrameBehavior(KWFrame::NewFrameBehavior nfb)
set newFrameBehavior on all frames, see KWFrame for specifics
Definition KWFrameSet.cpp:1153
virtual void drawPadding(KWFrame *frame, TQPainter *p, const TQRect &fcrect, const TQColorGroup &cg, KWViewMode *viewMode)
Draw the padding area inside of a specific frame of this frameSet.
Definition KWFrameSet.cpp:187
int m_firstPage
always equal to m_framesInPage[0].first()->pageNumber() :)
Definition KWFrameSet.h:491
Info
The different types of textFramesets (that TEXT is important here!) FI_BODY = normal text frames.
Definition KWFrameSet.h:91
const TQPtrList< KWFrame > & frameIterator() const
Iterator over the child frames.
Definition KWFrameSet.h:159
virtual void finalize()
Called once the frameset has been completely loaded or constructed.
Definition KWFrameSet.cpp:1074
virtual KWFrameSetEdit * createFrameSetEdit(KWCanvas *)
Create a framesetedit object to edit this frameset in canvas.
Definition KWFrameSet.h:169
virtual bool canBeSavedAsInlineCharacter() const
If the frameset is inline, is it ok to save it inside an oasis <text:p>?
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 void createEmptyRegion(const TQRect &crect, TQRegion &emptyRegion, KWViewMode *viewMode)
Let the caller know which parts of emptyRegion we do not claim, and thus the caller is free to paint ...
Definition KWFrameSet.cpp:160
bool isDeleted() const
True if the frameset was deleted (but not destroyed, since it's in the undo/redo).
Definition KWFrameSet.h:166
virtual int floatingFrameBaseline(int)
Get the 'baseline' to use for the "floating frame" identified by frameNum.
Definition KWFrameSet.h:397
TQPtrVector< TQPtrList< KWFrame > > m_framesInPage
This array provides a direct access to the frames on page N.
Definition KWFrameSet.h:489
virtual void drawFrame(KWFrame *frame, TQPainter *painter, const TQRect &fcrect, const TQRect &crect, const TQPoint &translationOffset, KWFrame *settingsFrame, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, bool drawUnderlyingFrames)
Draw a particular frame of this frameset.
Definition KWFrameSet.cpp:757
virtual KWAnchor * createAnchor(KoTextDocument *txt, int frameNum)
Create an anchor for the floating frame identified by frameNum.
Definition KWFrameSet.cpp:377
virtual bool canRemovePage(int num)
Return true if page num can be removed, as far as this frameset is concerned.
Definition KWFrameSet.cpp:1129
virtual void load(TQDomElement &framesetElem, bool loadFrames=true)
load from XML - when loading
Definition KWFrameSet.cpp:909
bool isFloating() const
Return true if this frameset is floating (inline), false if it's fixed.
Definition KWFrameSet.h:372
virtual void frameDeleted(KWFrame *, bool)
Called by deleteFrame when it really deletes a frame (remove=true), to remove it from the table too.
Definition KWFrameSet.h:129
virtual void updateFrames(int flags=0xff)
Called when our frames change, or when another frameset's frames change.
Definition KWFrameSet.cpp:541
void saveCommon(TQDomElement &parentElem, bool saveFrames)
save the common attributes for the frameset
Definition KWFrameSet.cpp:868
TQPtrList< KWFrame > m_emptyList
always empty, for convenience in framesInPage
Definition KWFrameSet.h:493
KWTableFrameSet * groupmanager() const
returns the groupManager this frameset belongs to.
Definition KWFrameSet.h:408
virtual KoSize floatingFrameSize(int frameNum=0)
Get the size of the "floating frame" identified by frameNum.
Definition KWFrameSet.cpp:482
virtual TQDomElement toXML(TQDomElement &parentElem, bool saveFrames=true)
save to XML - when copying to clipboard
Definition KWFrameSet.h:320
virtual void fromXML(TQDomElement &framesetElem, bool loadFrames=true, bool=true)
load from XML - when pasting from clipboard
Definition KWFrameSet.h:332
KWTextFrameSet * anchorFrameset() const
Return the frameset in which our anchor is - assuming isFloating().
Definition KWFrameSet.h:374
void setFrameBehavior(KWFrame::FrameBehavior fb)
set frameBehavior on all frames, see KWFrame for specifics
Definition KWFrameSet.cpp:1148
void setFloating()
Make this frameset floating (anchored), as close to its current position as possible.
Definition KWFrameSet.cpp:278
TQString name() const
get/set frameset name. For tables in particular, this must be unique
Definition KWFrameSet.h:428
TQRegion frameClipRegion(TQPainter *painter, KWFrame *frame, const TQRect &crect, KWViewMode *viewMode)
Determine the clipping rectangle for drawing the contents of frame with painter in the rectangle deli...
Definition KWFrameSet.cpp:1080
const TQPtrList< KWFrame > & framesInPage(int pageNum) const
Return list of frames in page pageNum.
Definition KWFrameSet.cpp:618
void setAnchorFrameset(KWTextFrameSet *textfs)
Sets the frameset in which we are about to become inline. Used for OASIS loading.
Definition KWFrameSet.h:376
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 void drawFrameContents(KWFrame *frame, TQPainter *painter, const TQRect &fcrect, const TQColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode)
Implement this one instead of drawFrame to benefit from double-buffering AND transparency handling (p...
Definition KWFrameSet.cpp:862
bool isVisible(KWViewMode *viewMode=0L) const
Returns true if the frameset is visible.
Definition KWFrameSet.cpp:992
bool isFrameAtPos(const KWFrame *frame, const TQPoint &nPoint, bool borderOfFrameOnly=false) const
Return if the point is on the frame.
Definition KWFrameSet.cpp:1159
KoRect floatingFrameRect(int frameNum=0)
Get the rect of the "floating frame" identified by frameNum, in coordinates RELATIVE TO THE PARENT FR...
Definition KWFrameSet.cpp:466
bool hasFramesInPageArray() const
Allows to detect that updateFrames() hasn't been called yet (e.g.
Definition KWFrameSet.h:311
KWFrame * frameAtPos(double _x, double _y) const
retrieve frame from x and y coords (unzoomed coords)
Definition KWFrameSet.cpp:503
virtual KCommand * anchoredObjectDeleteCommand(int frameNum)
Store command for deleting an anchored object.
Definition KWFrameSet.cpp:496
void setGroupManager(KWTableFrameSet *gm)
make this frameset part of a groupmanager
Definition KWFrameSet.h:406
virtual TQDomElement save(TQDomElement &parentElem, bool saveFrames=true)=0
save to XML - when saving
Class that knows about all the (visible) frames in the document and will act as a manager between the...
Definition KWFrameViewManager.h:51
NewFrameBehavior
What happens on new page (create a new frame and reconnect, no followup, make copy).
Definition KWFrame.h:132
The Page Manager manages all the pages a document contains and separates all the frames the document ...
Definition KWPageManager.h:33
This class implements tables by acting as the manager for the frame(set)s which make up the table cel...
Definition KWTableFrameSet.h:59
Object that is created to edit a Text frame set (KWTextFrameSet).
Definition KWTextFrameSet.h:386
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.
Definition KWTextFrameSet.h:64
This class extends KoTextParag for KWord-specific formatting stuff, custom items, loading and saving.
Definition KWTextParag.h:41
