lib Library API Documentation

KoParagStyle Class Reference

A paragraph style is a combination of a character style and paragraph-layout attributes, all grouped under a name. More...

#include <kostyle.h>

Inheritance diagram for KoParagStyle:

Inheritance graph
[legend]
Collaboration diagram for KoParagStyle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KoParagStyle (const QString &name)
 KoParagStyle (const KoParagStyle &rhs)
void operator= (const KoParagStyle &)
const KoParagLayout & paragLayout () const
KoParagLayout & paragLayout ()
KoParagStyle * followingStyle () const
void setFollowingStyle (KoParagStyle *fst)
void saveStyle (QDomElement &parentElem)
void loadStyle (QDomElement &parentElem, int docVersion=2)
void loadStyle (QDomElement &styleElem, KoOasisContext &context)
QString saveStyle (KoGenStyles &genStyles, int styleType, const QString &parentStyleName, KoSavingContext &context) const
KoParagStyle * parentStyle () const
void setParentStyle (KoParagStyle *_style)
int inheritedParagLayoutFlag () const
int inheritedFormatFlag () const
void propagateChanges (int paragLayoutFlag, int formatFlag)
bool isOutline () const
void setOutline (bool b)

Detailed Description

A paragraph style is a combination of a character style and paragraph-layout attributes, all grouped under a name.

Definition at line 170 of file kostyle.h.


Constructor & Destructor Documentation

KoParagStyle::KoParagStyle (  const QString &  name  ) 
 

Create a blank style (with default attributes).

Definition at line 432 of file kostyle.cc.

References KoParagLayout::style.

KoParagStyle::KoParagStyle (  const KoParagStyle &  rhs  ) 
 

Copy another style.

Definition at line 445 of file kostyle.cc.


Member Function Documentation

void KoParagStyle::saveStyle (  QDomElement &  parentElem  ) 
 

Saves the name, layout, the following style and the outline bool.

Not the format.

Deprecated:
(1.3 format)

Definition at line 472 of file kostyle.cc.

References KoParagLayout::alignment, KoCharStyle::displayName(), and KoParagLayout::saveParagLayout().

void KoParagStyle::loadStyle (  QDomElement &  parentElem,
int  docVersion = 2
) 
 

Loads the name, layout and the outline bool.

Not the "following style" nor the format. (1.3 format)

Definition at line 487 of file kostyle.cc.

References KoParagLayout::loadParagLayout(), and KoParagLayout::style.

void KoParagStyle::loadStyle (  QDomElement &  styleElem,
KoOasisContext &  context
) 
 

Load the style from OASIS.

Definition at line 509 of file kostyle.cc.

References KoOasisContext::addStyles(), KoOasisContext::listStyleStack(), KoTextFormat::load(), KoParagLayout::loadOasisParagLayout(), KoOasisContext::pushListLevelStyle(), KoOasisContext::pushOutlineListLevelStyle(), and KoOasisContext::styleStack().

QString KoParagStyle::saveStyle (  KoGenStyles &  genStyles,
int  styleType,
const QString &  parentStyleName,
KoSavingContext &  context
)  const
 

Save the style to OASIS Don't use, use the method in KoStyleCollection instead.

Definition at line 573 of file kostyle.cc.

References KoGenStyle::addAttribute(), KoParagLayout::counter, KoParagCounter::depth(), KoParagCounter::numbering(), KoTextFormat::save(), KoParagLayout::saveOasis(), KoParagCounter::saveOasis(), and KoParagCounter::style().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:41:14 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003