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:


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
|
Create a blank style (with default attributes).
Definition at line 432 of file kostyle.cc. References KoParagLayout::style. |
|
Copy another style.
Definition at line 445 of file kostyle.cc. |
Member Function Documentation
|
Saves the name, layout, the following style and the outline bool. Not the format.
Definition at line 472 of file kostyle.cc. References KoParagLayout::alignment, KoCharStyle::displayName(), and KoParagLayout::saveParagLayout(). |
|
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. |
|
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(). |
|
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: