kword
KWTextParag Class Reference
#include <KWTextParag.h>
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) | |
~KWTextParag () | |
KWTextDocument * | kwTextDocument () 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::load | ( | QDomElement & | attributes | ) |
KoTextFormat KWTextParag::loadFormat | ( | QDomElement & | formatElem, | |
KoTextFormat * | refFormat, | |||
const QFont & | defaultFont, | |||
const QString & | defaultLanguage, | |||
bool | hyphanation | |||
) | [static] |
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.
void KWTextParag::save | ( | QDomElement & | parentElem, | |
int | from, | |||
int | to, | |||
bool | saveAnchorsFramesets = false | |||
) |
void KWTextParag::save | ( | QDomElement & | parentElem, | |
bool | saveAnchorsFramesets = false | |||
) |
QDomElement KWTextParag::saveFormat | ( | QDomDocument & | doc, | |
KoTextFormat * | curFormat, | |||
KoTextFormat * | refFormat, | |||
int | pos, | |||
int | len | |||
) | [static] |
void KWTextParag::setPageBreaking | ( | int | pb | ) |
The documentation for this class was generated from the following files: