kword

KWTextFrameSet Class Reference

#include <KWTextFrameSet.h>

Inheritance diagram for KWTextFrameSet:

KWFrameSet KWFootNoteFrameSet KWTableFrameSet::Cell List of all members.

Detailed Description

Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.

This class implements the KoTextFormatInterface methods for "apply to the whole text object". This is how "setBold", "setItalic" etc. can apply to a whole text frameset.

Definition at line 63 of file KWTextFrameSet.h.


Public Types

 InsideFrame
 LeftOfFrame
 TopOfFrame
 AtEnd
enum  RelativePosition { InsideFrame, LeftOfFrame, TopOfFrame, AtEnd }

Public Slots

void slotRepaintChanged ()

Signals

void frameDeleted (KWFrame *frame)
void mainTextHeightChanged ()

Public Member Functions

 KWTextFrameSet (KWDocument *_doc, const QString &name)
 KWTextFrameSet (KWDocument *doc, const QDomElement &tag, KoOasisContext &context)
 ~KWTextFrameSet ()
virtual KWordFrameSetIfacedcopObject ()
virtual FrameSetType type () const
virtual KWFrameSetEditcreateFrameSetEdit (KWCanvas *canvas)
KoTextObject * textObject () const
KoTextDocument * textDocument () const
KWTextDocumentkwTextDocument () const
void setProtectContent (bool _protect)
bool protectContent () const
void clearUndoRedoInfo ()
KWFramedocumentToInternal (const KoPoint &dPoint, QPoint &iPoint) const
KWFramedocumentToInternalMouseSelection (const KoPoint &dPoint, QPoint &iPoint, RelativePosition &relPos, KWViewMode *viewMode) const
KWFrameinternalToDocument (const KoPoint &relPoint, KoPoint &dPoint) const
KWFrameinternalToDocument (const QPoint &iPoint, KoPoint &dPoint) const
KWFrameinternalToDocumentWithHint (const QPoint &iPoint, KoPoint &dPoint, const KoPoint &hintDPoint) const
KoPoint internalToDocumentKnowingFrame (const KoPoint &relPoint, KWFrame *theFrame) const
KoPoint internalToDocumentKnowingFrame (const QPoint &iPoint, KWFrame *theFrame) const
QPoint moveToPage (int currentPgNum, short int direction) const
virtual int availableHeight () const
bool isFrameEmpty (KWFrame *frame)
virtual bool canRemovePage (int num)
virtual void deleteFrame (unsigned int num, bool remove=true, bool recalc=true)
void deleteFrame (KWFrame *frm, bool remove=true, bool recalc=true)
virtual void updateFrames (int flags=0xff)
void updateViewArea (QWidget *w, KWViewMode *viewMode, const QPoint &nPointBottom)
virtual QDomElement save (QDomElement &parentElem, bool saveFrames=true)
virtual QDomElement toXML (QDomElement &parentElem, bool saveFrames=true)
virtual void load (QDomElement &attributes, bool loadFrames=true)
void loadOasisContent (const QDomElement &bodyElem, KoOasisContext &context)
KWFrameloadOasis (const QDomElement &frame, const QDomElement &bodyElem, KoOasisContext &context)
KWFrameloadOasisTextFrame (const QDomElement &frameTag, const QDomElement &tag, KoOasisContext &context)
void saveOasisContent (KoXmlWriter &writer, KoSavingContext &context) const
virtual void saveOasis (KoXmlWriter &writer, KoSavingContext &context, bool saveFrames) const
virtual QString toPlainText () const
virtual void finalize ()
bool hasSelection () const
QString selectedText () const
virtual void drawContents (QPainter *painter, const QRect &crect, const QColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, KWFrameViewManager *frameViewManager)
virtual void drawFrame (KWFrame *frame, QPainter *painter, const QRect &fcrect, const QRect &crect, const QPoint &translationOffset, KWFrame *settingsFrame, const QColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode, bool drawUnderlyingFrames)
virtual void drawFrameContents (KWFrame *frame, QPainter *painter, const QRect &fcrect, const QColorGroup &cg, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode)
void drawCursor (QPainter *p, KoTextCursor *cursor, bool cursorVisible, KWCanvas *canvas, KWFrame *currentFrame)
QPoint cursorPos (KoTextCursor *cursor, KWCanvas *canvas, KWFrame *currentFrame)
KCommand * pasteOasis (KoTextCursor *cursor, const QByteArray &data, bool removeSelected)
void insertTOC (KoTextCursor *cursor)
KNamedCommand * insertFrameBreakCommand (KoTextCursor *cursor)
void insertFrameBreak (KoTextCursor *cursor)
KCommand * setPageBreakingCommand (KoTextCursor *cursor, int pageBreaking)
QRect paragRect (KoTextParag *parag) const
KCommand * deleteAnchoredFrame (KWAnchor *anchor)
void findPosition (const KoPoint &dPoint, KoTextParag *&parag, int &index)
void highlightPortion (KoTextParag *parag, int index, int length, KWCanvas *canvas, bool repaint=true, KDialogBase *dialog=0)
void removeHighlight (bool repaint=true)
virtual void addTextFrameSets (QPtrList< KWTextFrameSet > &lst, bool onlyReadWrite=false)
void applyStyleChange (KoStyleChangeDefMap changed)
virtual void setVisible (bool v)
void setInlineFramesVisible (bool)
virtual void printDebug ()
virtual void layout ()
virtual void invalidate ()
virtual int paragraphs ()
virtual int paragraphsSelected ()
virtual bool statistics (QProgressDialog *progress, ulong &charsWithSpace, ulong &charsWithoutSpace, ulong &words, ulong &sentences, ulong &syllables, ulong &lines, bool selected)
virtual void adjustMargins (int yp, int h, int reqMinWidth, int &leftMargin, int &rightMargin, int &pageWidth, KoTextParag *parag)
virtual int adjustFlow (int y, int w, int h)
int formatVertically (KoTextParag *parag, const QRect &rect)
void fixParagWidth (KWTextParag *parag)
void ensureFormatted (KoTextParag *parag, bool emitAfterFormatting=true)
KWViewModecurrentViewMode () const
KWFramecurrentDrawnFrame () const
virtual KoTextFormat * currentFormat () const
virtual KCommand * setFormatCommand (const KoTextFormat *newFormat, int flags, bool zoomFont=false)
virtual const KoParagLayout * currentParagLayoutFormat () const
virtual bool rtl () const
virtual KCommand * setParagLayoutFormatCommand (KoParagLayout *newLayout, int flags, int marginIndex=-1)
virtual KCommand * setChangeCaseOfTextCommand (KoChangeCaseDia::TypeOfCase _type)
void renumberFootNotes (bool repaint=true)
virtual KWTextFrameSetnextTextObject (KWFrameSet *)
bool minMaxInternalOnPage (int pageNum, int &topLU, int &bottomLU) const
KoTextParag * paragAtLUPos (int yLU) const
KWFootNoteFrameSetinsertFootNote (NoteType noteType, KWFootNoteVariable::Numbering numType, const QString &manualString)
KoTextDocCommand * deleteTextCommand (KoTextDocument *textdoc, int id, int index, const QMemArray< KoTextStringChar > &str, const CustomItemsMap &customItemsMap, const QValueList< KoParagLayout > &oldParagLayouts)
QString copyTextParag (KoXmlWriter &writer, KoSavingContext &context, int selectionId)
QByteArray sortText (SortType type) const
KoLinkVariable * linkVariableUnderMouse (const KoPoint &dPoint)
KoVariable * variableUnderMouse (const KoPoint &dPoint)

Protected Slots

void slotAvailableHeightNeeded ()
void slotAfterFormatting (int bottom, KoTextParag *lastFormatted, bool *abort)
void slotNewCommand (KCommand *cmd)
void slotParagraphDeleted (KoTextParag *_parag)
void slotParagraphCreated (KoTextParag *_parag)
void slotParagraphModified (KoTextParag *_parag, int, int, int)

Protected Member Functions

 KWTextFrameSet (const QString &name)

Member Enumeration Documentation


Constructor & Destructor Documentation

KWTextFrameSet::KWTextFrameSet ( KWDocument _doc,
const QString &  name 
)

Cnstructor.

Definition at line 105 of file KWTextFrameSet.cpp.

KWTextFrameSet::KWTextFrameSet ( KWDocument doc,
const QDomElement &  tag,
KoOasisContext &  context 
)

Used for OASIS loading.

Definition at line 118 of file KWTextFrameSet.cpp.

KWTextFrameSet::~KWTextFrameSet (  ) 

Destructor.

Definition at line 1381 of file KWTextFrameSet.cpp.


Member Function Documentation

int KWTextFrameSet::adjustFlow ( int  y,
int  w,
int  h 
) [virtual]

reimplemented from KoTextParag, adjusts y and returns the shift.

Definition at line 1356 of file KWTextFrameSet.cpp.

void KWTextFrameSet::adjustMargins ( int  yp,
int  h,
int  reqMinWidth,
int &  leftMargin,
int &  rightMargin,
int &  pageWidth,
KoTextParag *  parag 
) [virtual]

reimplemented from KoTextFlow, implements flowing around frames etc.

Definition at line 1095 of file KWTextFrameSet.cpp.

void KWTextFrameSet::applyStyleChange ( KoStyleChangeDefMap  changed  ) 

Update the paragraph that use the given style, after this style was changed.

The flags tell which changes should be applied.

Parameters:
changed the changed style map

Definition at line 2856 of file KWTextFrameSet.cpp.

int KWTextFrameSet::availableHeight (  )  const [virtual]

Return the available height in pixels (sum of all frames' height, with zoom applied) Used to know if we need to create more pages.

Definition at line 1521 of file KWTextFrameSet.cpp.

bool KWTextFrameSet::canRemovePage ( int  num  )  [virtual]

Return true if page num can be removed, as far as this frameset is concerned.

Reimplemented from KWFrameSet.

Definition at line 2519 of file KWTextFrameSet.cpp.

KWFrameSetEdit * KWTextFrameSet::createFrameSetEdit ( KWCanvas canvas  )  [virtual]

Create a framesetedit object to edit this frameset in canvas.

Reimplemented from KWFrameSet.

Definition at line 203 of file KWTextFrameSet.cpp.

KWFrame* KWTextFrameSet::currentDrawnFrame (  )  const [inline]

The frame that we are currently drawing in drawFrame.

Stored here since we can't pass it through QRT's drawing methods. Used by e.g. KWAnchor.

Definition at line 269 of file KWTextFrameSet.h.

KoTextFormat * KWTextFrameSet::currentFormat (  )  const [virtual]

Let KoTextFormatInterface access the current format.

Definition at line 2862 of file KWTextFrameSet.cpp.

const KoParagLayout * KWTextFrameSet::currentParagLayoutFormat (  )  const [virtual]

Let KoTextFormatInterface access the current parag layout.

Definition at line 2887 of file KWTextFrameSet.cpp.

KWViewMode* KWTextFrameSet::currentViewMode (  )  const [inline]

The viewmode that was passed to drawContents.

Special hook for KWAnchor. Don't use.

Definition at line 266 of file KWTextFrameSet.h.

void KWTextFrameSet::deleteFrame ( KWFrame frm,
bool  remove = true,
bool  recalc = true 
) [inline]

Delete a frame from the set of frames this frameSet has.

Parameters:
frm The frame that should be deleted
remove passing true means that there can not be an undo of the action.
recalc do an updateFrames()

Reimplemented from KWFrameSet.

Definition at line 139 of file KWTextFrameSet.h.

void KWTextFrameSet::deleteFrame ( unsigned int  num,
bool  remove = true,
bool  recalc = true 
) [virtual]

Delete a frame from the set of frames this frameSet has.

Parameters:
num The frameNumber to be removed.
remove passing true means that there can not be an undo of the action.
recalc do an updateFrames()

Reimplemented from KWFrameSet.

Definition at line 2547 of file KWTextFrameSet.cpp.

KWFrame * KWTextFrameSet::documentToInternal ( const KoPoint &  dPoint,
QPoint &  iPoint 
) const

Convert the dPoint in the normal coordinate system (and in pt) into a point (iPoint) in the internal qtextdoc coordinates (in layout units).

Definition at line 225 of file KWTextFrameSet.cpp.

void KWTextFrameSet::drawContents ( QPainter *  painter,
const QRect &  crect,
const QColorGroup &  cg,
bool  onlyChanged,
bool  resetChanged,
KWFrameSetEdit edit,
KWViewMode viewMode,
KWFrameViewManager frameViewManager 
) [virtual]

Paint this frameset.

Parameters:
painter The painter in which to draw the contents of the frameset
crect The rectangle (in scrollview "contents coordinates", i.e. "view coords") to be painted
cg The colorgroup from which to get the colors
onlyChanged If true, only redraw what has changed (see KWCanvas::repaintChanged)
resetChanged If true, set the changed flag to false after drawing.
edit If set, this frameset is being edited, so a cursor is needed.
viewMode For coordinate conversion, always set.
frameViewManager the frameViewManager;
The way this "onlyChanged/resetChanged" works is: when something changes, all views are asked to redraw themselves with onlyChanged=true. But all views except the last one shouldn't reset the changed flag to false, otherwise the other views wouldn't repaint anything. So resetChanged is called with "false" for all views except the last one, and with "true" for the last one, so that it resets the flag.

Framesets shouldn't reimplement this one in theory [but KWTableFrameSet has to].

Reimplemented from KWFrameSet.

Reimplemented in KWTableFrameSet::Cell.

Definition at line 475 of file KWTextFrameSet.cpp.

void KWTextFrameSet::drawFrame ( KWFrame frame,
QPainter *  painter,
const QRect &  fcrect,
const QRect &  crect,
const QPoint &  translationOffset,
KWFrame settingsFrame,
const QColorGroup &  cg,
bool  onlyChanged,
bool  resetChanged,
KWFrameSetEdit edit,
KWViewMode viewMode,
bool  drawUnderlyingFrames 
) [virtual]

Draw a particular frame of this frameset.

This is called by drawContents and is what framesets must reimplement.

Parameters:
fcrect rectangle to be repainted, in the _frame_'s coordinate system, in pixels. Doesn't include padding.
crect rectangle to be repainted, in view coordinates. Includes padding. Default implementation does double-buffering and calls drawFrameContents.
frame the frame to draw
painter the painter to draw to
settingsFrame The frame from which we take the settings (usually frame, but not with Copy behaviour)
cg The colorgroup from which to get the colors
onlyChanged If true, only redraw what has changed (see KWCanvas::repaintChanged)
resetChanged If true, set the changed flag to false after drawing.
edit If set, this frameset is being edited, so a cursor is needed.
viewMode For coordinate conversion, always set.
drawUnderlyingFrames if the frame implements it, then it should draw underlying frames.
translationOffset offset this method will translate the paiter before doing its work.

Reimplemented from KWFrameSet.

Definition at line 561 of file KWTextFrameSet.cpp.

void KWTextFrameSet::drawFrameContents ( KWFrame frame,
QPainter *  painter,
const QRect &  fcrect,
const QColorGroup &  cg,
bool  onlyChanged,
bool  resetChanged,
KWFrameSetEdit edit,
KWViewMode viewMode 
) [virtual]

Implement this one instead of drawFrame to benefit from double-buffering AND transparency handling (painting frames below this one) automatically.

You MUST reimplement one or the other, or you'll get infinite recursion ;)

In this method, the painter has been translated to the frame's coordinate system

Parameters:
fcrect rectangle to be repainted, in the _frame_'s coordinate system, in pixels. Doesn't include padding.
frame the frame to draw
painter the painter to draw to
cg The colorgroup from which to get the colors
onlyChanged If true, only redraw what has changed (see KWCanvas::repaintChanged)
resetChanged If true, set the changed flag to false after drawing.
edit If set, this frameset is being edited, so a cursor is needed.
viewMode For coordinate conversion, always set.

Reimplemented from KWFrameSet.

Definition at line 575 of file KWTextFrameSet.cpp.

void KWTextFrameSet::ensureFormatted ( KoTextParag *  parag,
bool  emitAfterFormatting = true 
)

Make sure this paragraph is formatted If formatting happens, the afterFormatting signal will only be emitted if emitAfterFormatting is true.

This prevents re-entrancy if ensureFormatting is called by canRemovePage (from another frameset's slotAfterFormatting)

Definition at line 1951 of file KWTextFrameSet.cpp.

void KWTextFrameSet::finalize (  )  [virtual]

Called once the frameset has been completely loaded or constructed.

The default implementation calls updateFrames() and zoom(). Call the parent :)

Reimplemented from KWFrameSet.

Definition at line 1913 of file KWTextFrameSet.cpp.

void KWTextFrameSet::fixParagWidth ( KWTextParag parag  ) 

Called by KWTextFormatter::postFormat().

Definition at line 1362 of file KWTextFrameSet.cpp.

int KWTextFrameSet::formatVertically ( KoTextParag *  parag,
const QRect &  rect 
)

Called by KWTextFormatter.

Implements page breaking, breaking around frames, etc.

Definition at line 1192 of file KWTextFrameSet.cpp.

void KWTextFrameSet::frameDeleted ( KWFrame frame  )  [signal]

Tell the Edit object that this frame got deleted.

bool KWTextFrameSet::hasSelection (  )  const

return true if some text is selected

Definition at line 2807 of file KWTextFrameSet.cpp.

void KWTextFrameSet::highlightPortion ( KoTextParag *  parag,
int  index,
int  length,
KWCanvas canvas,
bool  repaint = true,
KDialogBase *  dialog = 0 
)

Highlighting support (for search/replace, spellchecking etc.

)

Definition at line 2822 of file KWTextFrameSet.cpp.

KWFootNoteFrameSet * KWTextFrameSet::insertFootNote ( NoteType  noteType,
KWFootNoteVariable::Numbering  numType,
const QString &  manualString 
)

Insert a footnote (var and frameset).

Shared code for loading and inserting from GUI.

Definition at line 3052 of file KWTextFrameSet.cpp.

KWFrame * KWTextFrameSet::internalToDocument ( const KoPoint &  relPoint,
KoPoint &  dPoint 
) const

Convert the in the internal qtextdoc coordinates (in layout units) into a point in the document coordinate system (in pt).

Also returns the frame in which this point is.

Definition at line 1526 of file KWTextFrameSet.cpp.

KoPoint KWTextFrameSet::internalToDocumentKnowingFrame ( const KoPoint &  relPoint,
KWFrame theFrame 
) const

A variant of internalToDocument, when the frame is already known.

Both faster, and more correct for inline frames that spawn over multiple containing frames

Definition at line 429 of file KWTextFrameSet.cpp.

KWFrame * KWTextFrameSet::internalToDocumentWithHint ( const QPoint &  iPoint,
KoPoint &  dPoint,
const KoPoint &  hintDPoint 
) const

Same as internalToDocument, but goes directly to the normal coords (zoomed) since this method is used for view stuff only (mouse).

Parameters:
hintDPoint hint, in case of copied frames. If specified, its y value will be used as a minimum on the returned result, to prefer a frame over any of its copies (e.g. in the header/footer case).
iPoint internal document point
dPoint the other point

Definition at line 380 of file KWTextFrameSet.cpp.

void KWTextFrameSet::invalidate (  )  [virtual]

Invalidate all paragraphs (causes a re-flow of the text upon next redraw).

Reimplemented from KWFrameSet.

Definition at line 834 of file KWTextFrameSet.cpp.

bool KWTextFrameSet::isFrameEmpty ( KWFrame frame  ) 

Return true if the last frame is empty.

Definition at line 2496 of file KWTextFrameSet.cpp.

void KWTextFrameSet::layout (  )  [virtual]

Invalidate all paragraphs and start re-formatting.

Reimplemented from KWFrameSet.

Definition at line 827 of file KWTextFrameSet.cpp.

void KWTextFrameSet::load ( QDomElement &  attributes,
bool  loadFrames = true 
) [virtual]

load from XML - when loading

Reimplemented from KWFrameSet.

Definition at line 1875 of file KWTextFrameSet.cpp.

KWFrame * KWTextFrameSet::loadOasis ( const QDomElement &  frame,
const QDomElement &  bodyElem,
KoOasisContext &  context 
)

Load a complete textbox (frame and text).

Definition at line 1751 of file KWTextFrameSet.cpp.

void KWTextFrameSet::loadOasisContent ( const QDomElement &  bodyElem,
KoOasisContext &  context 
)

Load the contents of a frame (i.e. the text).

Definition at line 1746 of file KWTextFrameSet.cpp.

KWFrame * KWTextFrameSet::loadOasisTextFrame ( const QDomElement &  frameTag,
const QDomElement &  tag,
KoOasisContext &  context 
)

Load a frame and add it to this frameset - called by KWOasisLoader.

Definition at line 1711 of file KWTextFrameSet.cpp.

void KWTextFrameSet::mainTextHeightChanged (  )  [signal]

Tell the text viewmode that the height of the text might have changed.

bool KWTextFrameSet::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 in this page.

Used by e.g. KWDoc::sectionTitle and KWFrameLayout.

Definition at line 2757 of file KWTextFrameSet.cpp.

QPoint KWTextFrameSet::moveToPage ( int  currentPgNum,
short int  direction 
) const

Implementation of Ctrl+PageUp/PageDown Returns a point in layout units (for placing the cursor).

Definition at line 447 of file KWTextFrameSet.cpp.

virtual KWTextFrameSet* KWTextFrameSet::nextTextObject ( KWFrameSet  )  [inline, virtual]

Iteration over text objects - used by KWBgSpellCheck.

Reimplemented from KWFrameSet.

Definition at line 294 of file KWTextFrameSet.h.

KoTextParag * KWTextFrameSet::paragAtLUPos ( int  yLU  )  const

Find the parag at the given Y position (in LU).

Definition at line 2779 of file KWTextFrameSet.cpp.

void KWTextFrameSet::renumberFootNotes ( bool  repaint = true  ) 

(Assuming this==main frameset), recalc the foot note numbers

Definition at line 2923 of file KWTextFrameSet.cpp.

virtual QDomElement KWTextFrameSet::save ( QDomElement &  parentElem,
bool  saveFrames = true 
) [inline, virtual]

save to XML - when saving

Implements KWFrameSet.

Definition at line 157 of file KWTextFrameSet.h.

void KWTextFrameSet::saveOasis ( KoXmlWriter &  writer,
KoSavingContext &  context,
bool  saveFrames 
) const [virtual]

Save a complete textbox (frame and text).

Implements KWFrameSet.

Definition at line 1834 of file KWTextFrameSet.cpp.

void KWTextFrameSet::saveOasisContent ( KoXmlWriter &  writer,
KoSavingContext &  context 
) const

Save the contents of a frame (i.e. the text).

Definition at line 1764 of file KWTextFrameSet.cpp.

QString KWTextFrameSet::selectedText (  )  const

returns the selected text [without formatting] if hasSelection()

Definition at line 2812 of file KWTextFrameSet.cpp.

KCommand * KWTextFrameSet::setFormatCommand ( const KoTextFormat *  newFormat,
int  flags,
bool  zoomFont = false 
) [virtual]

Let KoTextFormatInterface set the modified format.

Definition at line 2879 of file KWTextFrameSet.cpp.

void KWTextFrameSet::setInlineFramesVisible ( bool   ) 

Show or hide all inline frames that are inside this frameset.

Definition at line 1929 of file KWTextFrameSet.cpp.

KCommand * KWTextFrameSet::setParagLayoutFormatCommand ( KoParagLayout *  newLayout,
int  flags,
int  marginIndex = -1 
) [virtual]

Let KoTextFormatInterface set a modified current parag layout.

Definition at line 2898 of file KWTextFrameSet.cpp.

void KWTextFrameSet::setVisible ( bool  v  )  [virtual]

set the visibility of the frameset.

Reimplemented from KWFrameSet.

Definition at line 1923 of file KWTextFrameSet.cpp.

QByteArray KWTextFrameSet::sortText ( SortType  type  )  const

Sort selected paragraphs Return a complete OASIS store, ready for "pasting".

Definition at line 3008 of file KWTextFrameSet.cpp.

bool KWTextFrameSet::statistics ( QProgressDialog *  progress,
ulong &  charsWithSpace,
ulong &  charsWithoutSpace,
ulong &  words,
ulong &  sentences,
ulong &  syllables,
ulong &  lines,
bool  selected 
) [virtual]

Calculate statistics for this frameset.

Reimplemented from KWFrameSet.

Definition at line 867 of file KWTextFrameSet.cpp.

KoTextObject* KWTextFrameSet::textObject (  )  const [inline]

Return the contained text object.

Definition at line 84 of file KWTextFrameSet.h.

virtual QDomElement KWTextFrameSet::toXML ( QDomElement &  parentElem,
bool  saveFrames = true 
) [inline, virtual]

save to XML - when copying to clipboard (includes floating framesets)

Reimplemented from KWFrameSet.

Definition at line 160 of file KWTextFrameSet.h.

virtual FrameSetType KWTextFrameSet::type (  )  const [inline, virtual]

The type of frameset.

Use this to differentiate between different instantiations of the framesets. Each implementation will return a different frameType.

Reimplemented from KWFrameSet.

Definition at line 79 of file KWTextFrameSet.h.

void KWTextFrameSet::updateFrames ( int  flags = 0xff  )  [virtual]

reshuffle frames so text is always displayed from top-left down and then right.

Parameters:
flags 

Reimplemented from KWFrameSet.

Definition at line 1437 of file KWTextFrameSet.cpp.

void KWTextFrameSet::updateViewArea ( QWidget *  w,
KWViewMode viewMode,
const QPoint &  nPointBottom 
)

Views notify the KWTextFrameSet of which area of the text they're looking at, so that formatMore() ensures it's always formatted correctly.

Parameters:
w the wigdet (usually kwcanvas) that identifies the view
w the current viewmode (to make sure the frameset is visible)
nPointBottom the max the view looks at, in normal coordinates
viewMode the current viewMode

Definition at line 2556 of file KWTextFrameSet.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys