lib Library API Documentation

KoVariableFormatCollection Class Reference

The collection of formats for variables. More...

#include <kovariable.h>

List of all members.

Public Member Functions

void clear ()
KoVariableFormatformat (const QCString &key)

Protected Member Functions

KoVariableFormatcreateFormat (const QCString &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 242 of file kovariable.h.


Member Function Documentation

void KoVariableFormatCollection::clear void   )  [inline]
 

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

Definition at line 250 of file kovariable.h.

KoVariableFormat * KoVariableFormatCollection::format const QCString &  key  ) 
 

Find or create the format for the given key.

Definition at line 382 of file kovariable.cc.

Referenced by KoPgNumVariable::setVariableSubType().


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.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 13:19:31 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2003