kword

KWTextParag Class Reference

#include <KWTextParag.h>

Inherits KoTextParag.

List of all members.


Detailed Description

This class extends KoTextParag for KWord-specific formatting stuff, custom items, loading and saving.

Definition at line 40 of file KWTextParag.h.


Public Member Functions

 KWTextParag (KoTextDocument *d, KoTextParag *pr=0, KoTextParag *nx=0, bool updateIds=TRUE)
KWTextDocumentkwTextDocument () const
virtual void setParagLayout (const KoParagLayout &layout, int flags=KoParagLayout::All, int marginIndex=-1)
void setPageBreaking (int pb)
int pageBreaking () const
bool linesTogether () const
bool hardFrameBreakBefore () const
bool hardFrameBreakAfter () const
void save (QDomElement &parentElem, bool saveAnchorsFramesets=false)
void save (QDomElement &parentElem, int from, int to, bool saveAnchorsFramesets=false)
void load (QDomElement &attributes)
void loadFormatting (QDomElement &attributes, int offset=0, bool loadFootNote=true)
void loadLayout (QDomElement &attributes)
virtual void loadOasis (const QDomElement &e, KoOasisContext &context, KoStyleCollection *styleCollection, uint &pos)
virtual void saveOasis (KoXmlWriter &writer, KoSavingContext &context, int from, int to, bool saveAnchorsFramesets=false) const
virtual void join (KoTextParag *parag)

Static Public Member Functions

static KoTextFormat loadFormat (QDomElement &formatElem, KoTextFormat *refFormat, const QFont &defaultFont, const QString &defaultLanguage, bool hyphanation)
static QDomElement saveFormat (QDomDocument &doc, KoTextFormat *curFormat, KoTextFormat *refFormat, int pos, int len)
static KoParagLayout loadParagLayout (QDomElement &parentElem, KWDocument *doc, bool useRefStyle)

Protected Member Functions

virtual void drawFormattingChars (QPainter &painter, int start, int len, int lastY_pix, int baseLine_pix, int h_pix, bool drawSelections, KoTextFormat *lastFormat, const QMemArray< int > &selectionStarts, const QMemArray< int > &selectionEnds, const QColorGroup &cg, bool rightToLeft, int line, KoTextZoomHandler *zh, int whichFormattingChars)

Member Function Documentation

void KWTextParag::setPageBreaking ( int  pb  ) 

The type of page-breaking behaviour.

Definition at line 109 of file KWTextParag.cpp.

KoTextFormat KWTextParag::loadFormat ( QDomElement &  formatElem,
KoTextFormat *  refFormat,
const QFont &  defaultFont,
const QString &  defaultLanguage,
bool  hyphanation 
) [static]

Public for loading a style (KWord-1.3 XML).

Definition at line 400 of file KWTextParag.cpp.

QDomElement KWTextParag::saveFormat ( QDomDocument &  doc,
KoTextFormat *  curFormat,
KoTextFormat *  refFormat,
int  pos,
int  len 
) [static]

Public for saving a style (KWord-1.3 XML).

Definition at line 123 of file KWTextParag.cpp.

void KWTextParag::save ( QDomElement &  parentElem,
bool  saveAnchorsFramesets = false 
)

Save (to KWord-1.3 XML) the whole paragraph.

Definition at line 283 of file KWTextParag.cpp.

void KWTextParag::save ( QDomElement &  parentElem,
int  from,
int  to,
bool  saveAnchorsFramesets = false 
)

Save (to KWord-1.3 XML) a portion of the paragraph.

Definition at line 290 of file KWTextParag.cpp.

void KWTextParag::load ( QDomElement &  attributes  ) 

Load (from KWord-1.3 XML) the paragraph.

Definition at line 584 of file KWTextParag.cpp.

void KWTextParag::loadFormatting ( QDomElement &  attributes,
int  offset = 0,
bool  loadFootNote = true 
)

Load (from KWord-1.3 XML) and apply <FORMAT> tags (used by KWTextParag::load and by KWPasteCommand).

Definition at line 607 of file KWTextParag.cpp.

void KWTextParag::loadLayout ( QDomElement &  attributes  ) 

Load (from KWord-1.3 XML) and apply paragraph layout.

Definition at line 553 of file KWTextParag.cpp.

KoParagLayout KWTextParag::loadParagLayout ( QDomElement &  parentElem,
KWDocument *  doc,
bool  useRefStyle 
) [static]

Load (from KWord-1.3 XML), optionally using styles from document.

Definition at line 754 of file KWTextParag.cpp.


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