kword

#include <KWTextParag.h>

Inherits KoTextParag.

Public Member Functions

 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 Public Member Functions

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)
 

Protected Member Functions

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)
 

Detailed Description

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

Definition at line 40 of file KWTextParag.h.

Constructor & Destructor Documentation

◆ KWTextParag()

KWTextParag::KWTextParag ( KoTextDocument *  d,
KoTextParag *  pr = 0,
KoTextParag *  nx = 0,
bool  updateIds = true 
)
inline

Definition at line 43 of file KWTextParag.h.

◆ ~KWTextParag()

KWTextParag::~KWTextParag ( )
inline

Definition at line 45 of file KWTextParag.h.

Member Function Documentation

◆ 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

Definition at line 43 of file KWTextParag.cpp.

◆ hardFrameBreakAfter()

bool KWTextParag::hardFrameBreakAfter ( ) const
inline

Definition at line 56 of file KWTextParag.h.

◆ hardFrameBreakBefore()

bool KWTextParag::hardFrameBreakBefore ( ) const
inline

Definition at line 55 of file KWTextParag.h.

◆ join()

void KWTextParag::join ( KoTextParag *  parag)
virtual

Definition at line 790 of file KWTextParag.cpp.

◆ kwTextDocument()

KWTextDocument * KWTextParag::kwTextDocument ( ) const

Definition at line 117 of file KWTextParag.cpp.

◆ linesTogether()

bool KWTextParag::linesTogether ( ) const
inline

Definition at line 54 of file KWTextParag.h.

◆ load()

void KWTextParag::load ( TQDomElement &  attributes)

Load (from KWord-1.3 XML) the paragraph.

Definition at line 584 of file KWTextParag.cpp.

◆ 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 
)

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.

◆ 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

Definition at line 796 of file KWTextParag.cpp.

◆ 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

Definition at line 53 of file KWTextParag.h.

◆ 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

Public for saving a style (KWord-1.3 XML)

Definition at line 123 of file KWTextParag.cpp.

◆ saveOasis()

void KWTextParag::saveOasis ( KoXmlWriter &  writer,
KoSavingContext &  context,
int  from,
int  to,
bool  saveAnchorsFramesets = false 
) const
virtual

Definition at line 842 of file KWTextParag.cpp.

◆ setPageBreaking()

void KWTextParag::setPageBreaking ( int  pb)

The type of page-breaking behaviour.

Definition at line 109 of file KWTextParag.cpp.

◆ setParagLayout()

void KWTextParag::setParagLayout ( const KoParagLayout &  layout,
int  flags = KoParagLayout::All,
int  marginIndex = -1 
)
virtual

Definition at line 743 of file KWTextParag.cpp.


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