kword

#include <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)
KWTextFrameSet * textFrameSet () const
virtual KoTextDocCommand * deleteTextCommand (KoTextDocument *textdoc, int id, int index, const TQMemArray< KoTextStringChar > &str, const CustomItemsMap &customItemsMap, const TQValueList< KoParagLayout > &oldParagLayouts)
virtual bool loadSpanTag (const TQDomElement &tag, KoOasisContext &context, KoTextParag *parag, uint pos, TQString &textData, KoTextCustomItem *&customItem)
virtual bool loadOasisBodyTag (const TQDomElement &tag, KoOasisContext &context, KoTextParag *&lastParagraph, KoStyleCollection *styleColl, KoTextParag *nextParagraph)

Protected Member Functions

void init ()

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.

Constructor & Destructor Documentation

◆ KWTextDocument() [1/2]

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() [2/2]

KWTextDocument::KWTextDocument ( KoTextZoomHandler * zoomHandler)

A standalone text document, for a preview.

Definition at line 45 of file KWTextDocument.cpp.

◆ ~KWTextDocument()

KWTextDocument::~KWTextDocument ( )

Definition at line 58 of file KWTextDocument.cpp.

Member Function Documentation

◆ createParag()

KoTextParag * KWTextDocument::createParag ( KoTextDocument * d,
KoTextParag * pr = 0,
KoTextParag * nx = 0,
bool updateIds = true )
virtual

Definition at line 62 of file KWTextDocument.cpp.

◆ deleteTextCommand()

KoTextDocCommand * KWTextDocument::deleteTextCommand ( KoTextDocument * textdoc,
int id,
int index,
const TQMemArray< KoTextStringChar > & str,
const CustomItemsMap & customItemsMap,
const TQValueList< KoParagLayout > & oldParagLayouts )
virtual

Definition at line 67 of file KWTextDocument.cpp.

◆ init()

void KWTextDocument::init ( )
protected

Definition at line 52 of file KWTextDocument.cpp.

◆ loadOasisBodyTag()

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

Extensions to KoTextDocument::loadOasisText.

Definition at line 109 of file KWTextDocument.cpp.

◆ loadSpanTag()

bool KWTextDocument::loadSpanTag ( const TQDomElement & tag,
KoOasisContext & context,
KoTextParag * parag,
uint pos,
TQString & textData,
KoTextCustomItem *& customItem )
virtual

Extensions to KoTextParag::loadOasisSpan.

Definition at line 183 of file KWTextDocument.cpp.

◆ textFrameSet()

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 51 of file KWTextDocument.h.


The documentation for this class was generated from the following files: