lib Library API Documentation

KoCharStyle Class Reference

A KoCharStyle is a set of formatting attributes (font, color, etc. More...

#include <kostyle.h>

Inheritance diagram for KoCharStyle:

Inheritance graph
[legend]
Collaboration diagram for KoCharStyle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KoCharStyle (const QString &name)
 KoCharStyle (const KoCharStyle &rhs)
const KoTextFormatformat () const
KoTextFormatformat ()
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

KoCharStyle::KoCharStyle const QString name  ) 
 

Create a blank style (with default attributes).

Definition at line 404 of file kostyle.cc.

KoCharStyle::KoCharStyle const KoCharStyle rhs  )  [inline]
 

Copy another style.

Definition at line 135 of file kostyle.h.


Member Function Documentation

const KoTextFormat & KoCharStyle::format  )  const
 

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().

QString KoCharStyle::name  )  const [inline]
 

The internal name (untranslated if a standard style).

Definition at line 145 of file kostyle.h.

QString KoCharStyle::displayName  )  const
 

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:
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:40:46 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003