KWTextFrameSet.h
101 KWFrame * documentToInternalMouseSelection( const KoPoint &dPoint, TQPoint &iPoint, RelativePosition& relPos, KWViewMode *viewMode ) const;
118 KWFrame * internalToDocumentWithHint( const TQPoint &iPoint, KoPoint &dPoint, const KoPoint &hintDPoint ) const;
168 KWFrame* loadOasis( const TQDomElement& frame, const TQDomElement &bodyElem, KoOasisContext& context );
171 KWFrame* loadOasisTextFrame( const TQDomElement& frameTag, const TQDomElement &tag, KoOasisContext& context );
181 //virtual void preparePrinting( TQPainter *painter, TQProgressDialog *progress, int &processedParags );
193 virtual void drawFrame( KWFrame * frame, TQPainter *painter, const TQRect& fcrect, const TQRect& crect,
202 void drawCursor( TQPainter *p, KoTextCursor *cursor, bool cursorVisible, KWCanvas *canvas, KWFrame *currentFrame );
218 void highlightPortion( KoTextParag * parag, int index, int length, KWCanvas * canvas, bool repaint = true, KDialogBase* dialog = 0 );
247 virtual bool statistics( TQProgressDialog *progress, ulong & charsWithSpace, ulong & charsWithoutSpace,
251 virtual void adjustMargins( int yp, int h, int reqMinWidth, int& leftMargin, int& rightMargin, int& pageWidth, KoTextParag* parag );
276 virtual KCommand *setFormatCommand( const KoTextFormat * newFormat, int flags, bool zoomFont = false );
285 virtual KCommand *setParagLayoutFormatCommand( KoParagLayout *newLayout, int flags, int marginIndex=-1);
312 KWFootNoteFrameSet * insertFootNote( NoteType noteType, KWFootNoteVariable::Numbering numType, const TQString &manualString );
314 KoTextDocCommand *deleteTextCommand( KoTextDocument *textdoc, int id, int index, const TQMemArray<KoTextStringChar> & str, const CustomItemsMap & customItemsMap, const TQValueList<KoParagLayout> & oldParagLayouts );
353 void getMargins( int yp, int h, int reqMinWidth, int* marginLeft, int* marginRight, int* pageWidth, int* validHeight,
355 bool checkVerticalBreak( int & yp, int & h, KoTextParag * parag, bool linesTogether, int breakBegin, int breakEnd );
418 virtual void mouseMoveEvent( TQMouseEvent *, const TQPoint &, const KoPoint & ); // only called if button is pressed
442 void insertFootNote( NoteType noteType, KWFootNoteVariable::Numbering numType, const TQString& manualString );
459 double currentLeftMargin() const { return m_paragLayout.margins[TQStyleSheetItem::MarginLeft]; }
495 virtual bool doToolTipCompletion( KoTextCursor* cursor, KoTextParag *parag, int index,int keyPress );
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
Definition KWCanvas.h:61
The variable showing the footnote number in superscript, in the text.
Definition KWVariable.h:106
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
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
TQString name() const
get/set frameset name. For tables in particular, this must be unique
Definition KWFrameSet.h:428
Class that knows about all the (visible) frames in the document and will act as a manager between the...
Definition KWFrameViewManager.h:51
This is our KoTextDocument reimplementation, to create KWTextParag instead of KoTextParags,...
Definition KWTextDocument.h:36
Object that is created to edit a Text frame set (KWTextFrameSet).
Definition KWTextFrameSet.h:386
KoBorder border(KoBorder::BorderType type)
Return the requested border of the paragraph that the cursor currently is in.
Definition KWTextFrameSet.cpp:3967
virtual void terminate(bool removeselection=true)
Called before destruction, when terminating edition - use to e.g.
Definition KWTextFrameSet.cpp:3134
virtual KWFrameSetEdit * currentTextEdit()
Return the current most-low-level text edit object.
Definition KWTextFrameSet.h:395
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.
Definition KWTextFrameSet.h:64
KWFrame * internalToDocumentWithHint(const TQPoint &iPoint, KoPoint &dPoint, const KoPoint &hintDPoint) const
Same as internalToDocument, but goes directly to the normal coords (zoomed) since this method is used...
Definition KWTextFrameSet.cpp:380
TQPoint moveToPage(int currentPgNum, short int direction) const
Implementation of Ctrl+PageUp/PageDown Returns a point in layout units (for placing the cursor)
Definition KWTextFrameSet.cpp:447
virtual KWFrameSetEdit * createFrameSetEdit(KWCanvas *canvas)
Create a framesetedit object to edit this frameset in canvas.
Definition KWTextFrameSet.cpp:203
TQByteArray sortText(SortType type) const
Sort selected paragraphs Return a complete OASIS store, ready for "pasting".
Definition KWTextFrameSet.cpp:3007
void frameDeleted(KWFrame *frame)
Tell the Edit object that this frame got deleted.
virtual void updateFrames(int flags=0xff)
reshuffle frames so text is always displayed from top-left down and then right.
Definition KWTextFrameSet.cpp:1437
virtual TQDomElement toXML(TQDomElement &parentElem, bool saveFrames=true)
save to XML - when copying to clipboard (includes floating framesets)
Definition KWTextFrameSet.h:161
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
virtual int adjustFlow(int y, int w, int h)
reimplemented from KoTextParag, adjusts y and returns the shift.
Definition KWTextFrameSet.cpp:1356
void ensureFormatted(KoTextParag *parag, bool emitAfterFormatting=true)
Make sure this paragraph is formatted If formatting happens, the afterFormatting signal will only be ...
Definition KWTextFrameSet.cpp:1950
virtual KoTextFormat * currentFormat() const
Let KoTextFormatInterface access the current format.
Definition KWTextFrameSet.cpp:2861
KWFrame * loadOasisTextFrame(const TQDomElement &frameTag, const TQDomElement &tag, KoOasisContext &context)
Load a frame and add it to this frameset - called by KWOasisLoader.
Definition KWTextFrameSet.cpp:1711
virtual bool canRemovePage(int num)
Return true if page num can be removed, as far as this frameset is concerned.
Definition KWTextFrameSet.cpp:2518
void setInlineFramesVisible(bool)
Show or hide all inline frames that are inside this frameset.
Definition KWTextFrameSet.cpp:1928
KWFrame * loadOasis(const TQDomElement &frame, const TQDomElement &bodyElem, KoOasisContext &context)
Load a complete textbox (frame and text)
Definition KWTextFrameSet.cpp:1751
virtual void layout()
Invalidate all paragraphs and start re-formatting.
Definition KWTextFrameSet.cpp:827
bool isFrameEmpty(KWFrame *frame)
Return true if the last frame is empty.
Definition KWTextFrameSet.cpp:2495
virtual void load(TQDomElement &attributes, bool loadFrames=true)
load from XML - when loading
Definition KWTextFrameSet.cpp:1874
void mainTextHeightChanged()
Tell the text viewmode that the height of the text might have changed.
virtual int availableHeight() const
Return the available height in pixels (sum of all frames' height, with zoom applied) Used to know if ...
Definition KWTextFrameSet.cpp:1521
void loadOasisContent(const TQDomElement &bodyElem, KoOasisContext &context)
Load the contents of a frame (i.e. the text)
Definition KWTextFrameSet.cpp:1746
virtual KCommand * setParagLayoutFormatCommand(KoParagLayout *newLayout, int flags, int marginIndex=-1)
Let KoTextFormatInterface set a modified current parag layout.
Definition KWTextFrameSet.cpp:2897
virtual void saveOasis(KoXmlWriter &writer, KoSavingContext &context, bool saveFrames) const
Save a complete textbox (frame and text)
Definition KWTextFrameSet.cpp:1833
virtual const KoParagLayout * currentParagLayoutFormat() const
Let KoTextFormatInterface access the current parag layout.
Definition KWTextFrameSet.cpp:2886
KWViewMode * currentViewMode() const
The viewmode that was passed to drawContents.
Definition KWTextFrameSet.h:267
virtual void invalidate()
Invalidate all paragraphs (causes a re-flow of the text upon next redraw)
Definition KWTextFrameSet.cpp:834
virtual void deleteFrame(unsigned int num, bool remove=true, bool recalc=true)
Delete a frame from the set of frames this frameSet has.
Definition KWTextFrameSet.cpp:2546
KWFrame * documentToInternal(const KoPoint &dPoint, TQPoint &iPoint) const
Convert the dPoint in the normal coordinate system (and in pt) into a point (iPoint) in the internal ...
Definition KWTextFrameSet.cpp:225
KoTextParag * paragAtLUPos(int yLU) const
Find the parag at the given Y position (in LU)
Definition KWTextFrameSet.cpp:2778
virtual void adjustMargins(int yp, int h, int reqMinWidth, int &leftMargin, int &rightMargin, int &pageWidth, KoTextParag *parag)
reimplemented from KoTextFlow, implements flowing around frames etc.
Definition KWTextFrameSet.cpp:1095
int formatVertically(KoTextParag *parag, const TQRect &rect)
Called by KWTextFormatter.
Definition KWTextFrameSet.cpp:1192
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 KWTextFrameSet.cpp:575
void saveOasisContent(KoXmlWriter &writer, KoSavingContext &context) const
Save the contents of a frame (i.e. the text)
Definition KWTextFrameSet.cpp:1764
virtual KCommand * setFormatCommand(const KoTextFormat *newFormat, int flags, bool zoomFont=false)
Let KoTextFormatInterface set the modified format.
Definition KWTextFrameSet.cpp:2878
virtual KWTextFrameSet * nextTextObject(KWFrameSet *)
Iteration over text objects - used by KWBgSpellCheck.
Definition KWTextFrameSet.h:295
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 KWTextFrameSet.cpp:561
void fixParagWidth(KWTextParag *parag)
Called by KWTextFormatter::postFormat()
Definition KWTextFrameSet.cpp:1362
bool minMaxInternalOnPage(int pageNum, int &topLU, int &bottomLU) const
Return the min and max LU coordinates for the text in the given page, if the frameset has any frames ...
Definition KWTextFrameSet.cpp:2756
KWFootNoteFrameSet * insertFootNote(NoteType noteType, KWFootNoteVariable::Numbering numType, const TQString &manualString)
Insert a footnote (var and frameset).
Definition KWTextFrameSet.cpp:3051
virtual TQDomElement save(TQDomElement &parentElem, bool saveFrames=true)
save to XML - when saving
Definition KWTextFrameSet.h:158
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 KWTextFrameSet.cpp:475
virtual void finalize()
Called once the frameset has been completely loaded or constructed.
Definition KWTextFrameSet.cpp:1912
virtual void setVisible(bool v)
set the visibility of the frameset.
Definition KWTextFrameSet.cpp:1922
void updateViewArea(TQWidget *w, KWViewMode *viewMode, const TQPoint &nPointBottom)
Views notify the KWTextFrameSet of which area of the text they're looking at, so that formatMore() en...
Definition KWTextFrameSet.cpp:2555
TQString selectedText() const
returns the selected text [without formatting] if hasSelection()
Definition KWTextFrameSet.cpp:2811
void renumberFootNotes(bool repaint=true)
(Assuming this==main frameset), recalc the foot note numbers
Definition KWTextFrameSet.cpp:2922
KWFrame * currentDrawnFrame() const
The frame that we are currently drawing in drawFrame.
Definition KWTextFrameSet.h:270
void highlightPortion(KoTextParag *parag, int index, int length, KWCanvas *canvas, bool repaint=true, KDialogBase *dialog=0)
Highlighting support (for search/replace, spellchecking etc.)
Definition KWTextFrameSet.cpp:2821
virtual bool statistics(TQProgressDialog *progress, ulong &charsWithSpace, ulong &charsWithoutSpace, ulong &words, ulong &sentences, ulong &syllables, ulong &lines, bool selected)
Calculate statistics for this frameset.
Definition KWTextFrameSet.cpp:867
void applyStyleChange(KoStyleChangeDefMap changed)
Update the paragraph that use the given style, after this style was changed.
Definition KWTextFrameSet.cpp:2855
This class extends KoTextParag for KWord-specific formatting stuff, custom items, loading and saving.
Definition KWTextParag.h:41
