lib

KoParagStyle Class Reference

#include <KoParagStyle.h>

Inheritance diagram for KoParagStyle:
KoCharStyle KoUserStyle

Public Member Functions

 KoParagStyle (const TQString &name)
 KoParagStyle (const KoParagStyle &rhs)
void operator= (const KoParagStyle &)
const KoParagLayout & paragLayout () const
KoParagLayout & paragLayout ()
KoParagStyle * followingStyle () const
void setFollowingStyle (KoParagStyle *fst)
void saveStyle (TQDomElement &parentElem)
void loadStyle (TQDomElement &parentElem, int docVersion=2)
void loadStyle (TQDomElement &styleElem, KoOasisContext &context)
TQString saveStyle (KoGenStyles &genStyles, int styleType, const TQString &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)
Public Member Functions inherited from KoCharStyle
 KoCharStyle (const TQString &name)
 KoCharStyle (const KoCharStyle &rhs)
const KoTextFormat & format () const
KoTextFormat & format ()
Public Member Functions inherited from KoUserStyle
 KoUserStyle (const TQString &name)
TQString name () const
void setName (const TQString &name)
TQString displayName () const
void setDisplayName (const TQString &name)

Additional Inherited Members

Protected Attributes inherited from KoCharStyle
KoTextFormat m_format
Protected Attributes inherited from KoUserStyle
TQString m_name
TQString m_displayName

Detailed Description

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

Definition at line 54 of file KoParagStyle.h.

Constructor & Destructor Documentation

◆ KoParagStyle() [1/2]

KoParagStyle::KoParagStyle ( const TQString & name)

Create a blank style (with default attributes).

Definition at line 49 of file KoParagStyle.cpp.

◆ KoParagStyle() [2/2]

KoParagStyle::KoParagStyle ( const KoParagStyle & rhs)

Copy another style.

Definition at line 62 of file KoParagStyle.cpp.

◆ ~KoParagStyle()

KoParagStyle::~KoParagStyle ( )

Definition at line 68 of file KoParagStyle.cpp.

Member Function Documentation

◆ followingStyle()

KoParagStyle * KoParagStyle::followingStyle ( ) const
inline

Definition at line 71 of file KoParagStyle.h.

◆ inheritedFormatFlag()

int KoParagStyle::inheritedFormatFlag ( ) const
inline

Definition at line 91 of file KoParagStyle.h.

◆ inheritedParagLayoutFlag()

int KoParagStyle::inheritedParagLayoutFlag ( ) const
inline

Definition at line 90 of file KoParagStyle.h.

◆ isOutline()

bool KoParagStyle::isOutline ( ) const
inline

Definition at line 96 of file KoParagStyle.h.

◆ loadStyle() [1/2]

void KoParagStyle::loadStyle ( TQDomElement & 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 104 of file KoParagStyle.cpp.

◆ loadStyle() [2/2]

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

Load the style from OASIS.

Definition at line 126 of file KoParagStyle.cpp.

◆ operator=()

void KoParagStyle::operator= ( const KoParagStyle & rhs)

Definition at line 72 of file KoParagStyle.cpp.

◆ paragLayout() [1/2]

KoParagLayout & KoParagStyle::paragLayout ( )

Definition at line 238 of file KoParagStyle.cpp.

◆ paragLayout() [2/2]

const KoParagLayout & KoParagStyle::paragLayout ( ) const

Definition at line 233 of file KoParagStyle.cpp.

◆ parentStyle()

KoParagStyle * KoParagStyle::parentStyle ( ) const
inline

Definition at line 87 of file KoParagStyle.h.

◆ propagateChanges()

void KoParagStyle::propagateChanges ( int paragLayoutFlag,
int formatFlag )

Definition at line 243 of file KoParagStyle.cpp.

◆ saveStyle() [1/2]

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

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

Definition at line 190 of file KoParagStyle.cpp.

◆ saveStyle() [2/2]

void KoParagStyle::saveStyle ( TQDomElement & parentElem)

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

Not the format.

Deprecated
(1.3 format)

Definition at line 89 of file KoParagStyle.cpp.

◆ setFollowingStyle()

void KoParagStyle::setFollowingStyle ( KoParagStyle * fst)

Definition at line 84 of file KoParagStyle.cpp.

◆ setOutline()

void KoParagStyle::setOutline ( bool b)

Definition at line 281 of file KoParagStyle.cpp.

◆ setParentStyle()

void KoParagStyle::setParentStyle ( KoParagStyle * _style)
inline

Definition at line 88 of file KoParagStyle.h.


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