kword

KWTextDocument Class Reference

#include <KWTextDocument.h>

Inherits KoTextDocument.

List of all members.


Detailed Description

This is our KoTextDocument reimplementation, to create KWTextParag instead of KoTextParags, and to relate it to the text frameset it's in.

Definition at line 35 of file KWTextDocument.h.


Public Member Functions

 KWTextDocument (KWTextFrameSet *textfs, KoTextFormatCollection *fc, KoTextFormatter *formatter=0L)
 KWTextDocument (KoTextZoomHandler *zoomHandler)
virtual KoTextParag * createParag (KoTextDocument *d, KoTextParag *pr=0, KoTextParag *nx=0, bool updateIds=TRUE)
KWTextFrameSettextFrameSet () const
virtual KoTextDocCommand * deleteTextCommand (KoTextDocument *textdoc, int id, int index, const QMemArray< KoTextStringChar > &str, const CustomItemsMap &customItemsMap, const QValueList< KoParagLayout > &oldParagLayouts)
virtual bool loadSpanTag (const QDomElement &tag, KoOasisContext &context, KoTextParag *parag, uint pos, QString &textData, KoTextCustomItem *&customItem)
virtual bool loadOasisBodyTag (const QDomElement &tag, KoOasisContext &context, KoTextParag *&lastParagraph, KoStyleCollection *styleColl, KoTextParag *nextParagraph)

Protected Member Functions

void init ()

Constructor & Destructor Documentation

KWTextDocument::KWTextDocument ( KWTextFrameSet textfs,
KoTextFormatCollection *  fc,
KoTextFormatter *  formatter = 0L 
)

A real text document inside a frameset.

Definition at line 39 of file KWTextDocument.cpp.

KWTextDocument::KWTextDocument ( KoTextZoomHandler *  zoomHandler  ) 

A standalone text document, for a preview.

Definition at line 45 of file KWTextDocument.cpp.


Member Function Documentation

KWTextFrameSet* KWTextDocument::textFrameSet (  )  const [inline]

Return the text frameset in which this document is.

Note that this can be 0L (e.g. for paragraphs in the paragdia preview)

Definition at line 50 of file KWTextDocument.h.

bool KWTextDocument::loadSpanTag ( const QDomElement &  tag,
KoOasisContext &  context,
KoTextParag *  parag,
uint  pos,
QString &  textData,
KoTextCustomItem *&  customItem 
) [virtual]

Extensions to KoTextParag::loadOasisSpan.

Definition at line 183 of file KWTextDocument.cpp.

bool KWTextDocument::loadOasisBodyTag ( const QDomElement &  tag,
KoOasisContext &  context,
KoTextParag *&  lastParagraph,
KoStyleCollection *  styleColl,
KoTextParag *  nextParagraph 
) [virtual]

Extensions to KoTextDocument::loadOasisText.

Definition at line 109 of file KWTextDocument.cpp.


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