#include <KWTextParag.h>
Inherits KoTextParag.
|
| | KWTextParag (KoTextDocument *d, KoTextParag *pr=0, KoTextParag *nx=0, bool updateIds=true) |
| |
| 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 (TQDomElement &parentElem, bool saveAnchorsFramesets=false) |
| |
| void | save (TQDomElement &parentElem, int from, int to, bool saveAnchorsFramesets=false) |
| |
| void | load (TQDomElement &attributes) |
| |
| void | loadFormatting (TQDomElement &attributes, int offset=0, bool loadFootNote=true) |
| |
| void | loadLayout (TQDomElement &attributes) |
| |
| virtual void | loadOasis (const TQDomElement &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 KoTextFormat | loadFormat (TQDomElement &formatElem, KoTextFormat *refFormat, const TQFont &defaultFont, const TQString &defaultLanguage, bool hyphanation) |
| |
| static TQDomElement | saveFormat (TQDomDocument &doc, KoTextFormat *curFormat, KoTextFormat *refFormat, int pos, int len) |
| |
| static KoParagLayout | loadParagLayout (TQDomElement &parentElem, KWDocument *doc, bool useRefStyle) |
| |
|
| virtual void | drawFormattingChars (TQPainter &painter, int start, int len, int lastY_pix, int baseLine_pix, int h_pix, bool drawSelections, KoTextFormat *lastFormat, const TQMemArray< int > &selectionStarts, const TQMemArray< int > &selectionEnds, const TQColorGroup &cg, bool rightToLeft, int line, KoTextZoomHandler *zh, int whichFormattingChars) |
| |
This class extends KoTextParag for KWord-specific formatting stuff, custom items, loading and saving.
Definition at line 40 of file KWTextParag.h.
◆ KWTextParag()
| KWTextParag::KWTextParag |
( |
KoTextDocument * |
d, |
|
|
KoTextParag * |
pr = 0, |
|
|
KoTextParag * |
nx = 0, |
|
|
bool |
updateIds = true |
|
) |
| |
|
inline |
◆ ~KWTextParag()
| KWTextParag::~KWTextParag |
( |
| ) |
|
|
inline |
◆ drawFormattingChars()
| void KWTextParag::drawFormattingChars |
( |
TQPainter & |
painter, |
|
|
int |
start, |
|
|
int |
len, |
|
|
int |
lastY_pix, |
|
|
int |
baseLine_pix, |
|
|
int |
h_pix, |
|
|
bool |
drawSelections, |
|
|
KoTextFormat * |
lastFormat, |
|
|
const TQMemArray< int > & |
selectionStarts, |
|
|
const TQMemArray< int > & |
selectionEnds, |
|
|
const TQColorGroup & |
cg, |
|
|
bool |
rightToLeft, |
|
|
int |
line, |
|
|
KoTextZoomHandler * |
zh, |
|
|
int |
whichFormattingChars |
|
) |
| |
|
protectedvirtual |
◆ hardFrameBreakAfter()
| bool KWTextParag::hardFrameBreakAfter |
( |
| ) |
const |
|
inline |
◆ hardFrameBreakBefore()
| bool KWTextParag::hardFrameBreakBefore |
( |
| ) |
const |
|
inline |
◆ join()
| void KWTextParag::join |
( |
KoTextParag * |
parag | ) |
|
|
virtual |
◆ kwTextDocument()
◆ linesTogether()
| bool KWTextParag::linesTogether |
( |
| ) |
const |
|
inline |
◆ load()
| void KWTextParag::load |
( |
TQDomElement & |
attributes | ) |
|
◆ loadFormat()
| KoTextFormat KWTextParag::loadFormat |
( |
TQDomElement & |
formatElem, |
|
|
KoTextFormat * |
refFormat, |
|
|
const TQFont & |
defaultFont, |
|
|
const TQString & |
defaultLanguage, |
|
|
bool |
hyphanation |
|
) |
| |
|
static |
Public for loading a style (KWord-1.3 XML)
Definition at line 400 of file KWTextParag.cpp.
◆ loadFormatting()
| void KWTextParag::loadFormatting |
( |
TQDomElement & |
attributes, |
|
|
int |
offset = 0, |
|
|
bool |
loadFootNote = true |
|
) |
| |
◆ loadLayout()
| void KWTextParag::loadLayout |
( |
TQDomElement & |
attributes | ) |
|
Load (from KWord-1.3 XML) and apply paragraph layout.
Definition at line 553 of file KWTextParag.cpp.
◆ loadOasis()
| void KWTextParag::loadOasis |
( |
const TQDomElement & |
e, |
|
|
KoOasisContext & |
context, |
|
|
KoStyleCollection * |
styleCollection, |
|
|
uint & |
pos |
|
) |
| |
|
virtual |
◆ loadParagLayout()
| KoParagLayout KWTextParag::loadParagLayout |
( |
TQDomElement & |
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.
◆ pageBreaking()
| int KWTextParag::pageBreaking |
( |
| ) |
const |
|
inline |
◆ save() [1/2]
| void KWTextParag::save |
( |
TQDomElement & |
parentElem, |
|
|
bool |
saveAnchorsFramesets = false |
|
) |
| |
Save (to KWord-1.3 XML) the whole paragraph.
Definition at line 283 of file KWTextParag.cpp.
◆ save() [2/2]
| void KWTextParag::save |
( |
TQDomElement & |
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.
◆ saveFormat()
| TQDomElement KWTextParag::saveFormat |
( |
TQDomDocument & |
doc, |
|
|
KoTextFormat * |
curFormat, |
|
|
KoTextFormat * |
refFormat, |
|
|
int |
pos, |
|
|
int |
len |
|
) |
| |
|
static |
◆ saveOasis()
| void KWTextParag::saveOasis |
( |
KoXmlWriter & |
writer, |
|
|
KoSavingContext & |
context, |
|
|
int |
from, |
|
|
int |
to, |
|
|
bool |
saveAnchorsFramesets = false |
|
) |
| const |
|
virtual |
◆ setPageBreaking()
| void KWTextParag::setPageBreaking |
( |
int |
pb | ) |
|
◆ setParagLayout()
| void KWTextParag::setParagLayout |
( |
const KoParagLayout & |
layout, |
|
|
int |
flags = KoParagLayout::All, |
|
|
int |
marginIndex = -1 |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files:
|