KoCharStyle Class Reference
A KoCharStyle is a set of formatting attributes (font, color, etc. More...
#include <kostyle.h>
Inheritance diagram for KoCharStyle:


Public Member Functions | |
KoCharStyle (const QString &name) | |
KoCharStyle (const KoCharStyle &rhs) | |
const KoTextFormat & | format () const |
KoTextFormat & | format () |
QString | name () const |
void | setInternalName (const QString &name) |
QString | displayName () const |
void | setDisplayName (const QString &name) |
QString | shortCutName () const |
void | setShortCutName (const QString &shortCut) |
Protected Attributes | |
QString | m_name |
QString | m_shortCutName |
QString | m_displayName |
KoTextFormat | m_format |
Detailed Description
A KoCharStyle is a set of formatting attributes (font, color, etc.) to be applied to a run of text.
Definition at line 128 of file kostyle.h.
Constructor & Destructor Documentation
|
Create a blank style (with default attributes).
Definition at line 404 of file kostyle.cc. |
|
Copy another style.
|
Member Function Documentation
|
Return a format. Don't forget to use the format collection of your KoTextDocument from the result of that method. Definition at line 420 of file kostyle.cc. Referenced by KoTextObject::applyStyleCommand(). |
|
The internal name (untranslated if a standard style).
|
|
The user-visible name (e.g. translated) Definition at line 410 of file kostyle.cc. Referenced by KoTextObject::applyStyleCommand(), KoParagLayout::saveParagLayout(), and KoParagStyle::saveStyle(). |
The documentation for this class was generated from the following files: