lib Library API Documentation

KoStyle Class Reference

A style is a combination of formatting attributes (font, color, etc.) and paragraph-layout attributes, all grouped under a name. More...

#include <kostyle.h>

List of all members.

Public Member Functions

 KoStyle (const QString &name)
 KoStyle (const KoStyle &rhs)
void operator= (const KoStyle &)
const KoParagLayoutparagLayout () const
KoParagLayoutparagLayout ()
KoStylefollowingStyle () const
void setFollowingStyle (KoStyle *fst)
void saveStyle (QDomElement &parentElem)
void loadStyle (QDomElement &parentElem, int docVersion=2)
KoStyleparentStyle () const
void setParentStyle (KoStyle *_style)
int inheritedParagLayoutFlag () const
int inheritedFormatFlag () const
void propagateChanges (int paragLayoutFlag, int formatFlag)
bool isOutline () const
void setOutline (bool b)

Static Public Member Functions

int getAttribute (const QDomElement &element, const char *attributeName, int defaultValue)
double getAttribute (const QDomElement &element, const char *attributeName, double defaultValue)


Detailed Description

A style is a combination of formatting attributes (font, color, etc.) and paragraph-layout attributes, all grouped under a name.

Definition at line 113 of file kostyle.h.


Constructor & Destructor Documentation

KoStyle::KoStyle const QString name  ) 
 

Create a blank style (with default attributes).

Definition at line 174 of file kostyle.cc.

References KoStyle(), and KoParagLayout::style.

Referenced by KoStyle().

KoStyle::KoStyle const KoStyle rhs  ) 
 

Copy another style.

Definition at line 189 of file kostyle.cc.

References KoStyle().


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.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:04:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003