lib

KoVariableFormatCollection Class Reference

#include <KoVariable.h>

Public Member Functions

void clear ()
KoVariableFormat * format (const TQCString &key)

Protected Member Functions

KoVariableFormat * createFormat (const TQCString &key)

Detailed Description

The collection of formats for variables.

Example: date (short or long), time, string (prefix/suffix), number (prefix/suffix, decimals?)... Implements the flyweight pattern to share formats and create them on demand. Each KoDocument holds a KoVariableFormatCollection.

Definition at line 262 of file KoVariable.h.

Constructor & Destructor Documentation

◆ KoVariableFormatCollection()

KoVariableFormatCollection::KoVariableFormatCollection ( )

Definition at line 442 of file KoVariable.cpp.

Member Function Documentation

◆ clear()

void KoVariableFormatCollection::clear ( )
inline

Forget (and erase) all the formats this collection knows about.

Definition at line 270 of file KoVariable.h.

◆ createFormat()

KoVariableFormat * KoVariableFormatCollection::createFormat ( const TQCString & key)
protected

Definition at line 456 of file KoVariable.cpp.

◆ format()

KoVariableFormat * KoVariableFormatCollection::format ( const TQCString & key)

Find or create the format for the given key.

Definition at line 447 of file KoVariable.cpp.


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