lib

#include <KoParagStyle.h>

Inheritance diagram for KoCharStyle:
KoUserStyle KoParagStyle

Public Member Functions

 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)

Protected Attributes

KoTextFormat m_format
Protected Attributes inherited from KoUserStyle
TQString m_name
TQString m_displayName

Detailed Description

A KoCharStyle is a set of formatting attributes (font, color, etc.) to be applied to a run of text.

Definition at line 32 of file KoParagStyle.h.

Constructor & Destructor Documentation

◆ KoCharStyle() [1/2]

KoCharStyle::KoCharStyle ( const TQString & name)

Create a blank style (with default attributes).

Definition at line 32 of file KoParagStyle.cpp.

◆ KoCharStyle() [2/2]

KoCharStyle::KoCharStyle ( const KoCharStyle & rhs)
inline

Copy another style.

Definition at line 39 of file KoParagStyle.h.

Member Function Documentation

◆ format() [1/2]

KoTextFormat & KoCharStyle::format ( )

Definition at line 42 of file KoParagStyle.cpp.

◆ format() [2/2]

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 37 of file KoParagStyle.cpp.

Member Data Documentation

◆ m_format

KoTextFormat KoCharStyle::m_format
protected

Definition at line 47 of file KoParagStyle.h.


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