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 443 of file KoVariable.cpp.
Member Function Documentation
◆ clear()
|
inline |
Forget (and erase) all the formats this collection knows about.
Definition at line 270 of file KoVariable.h.
◆ createFormat()
|
protected |
Definition at line 457 of file KoVariable.cpp.
◆ format()
| KoVariableFormat * KoVariableFormatCollection::format | ( | const TQCString & | key | ) |
Find or create the format for the given key.
Definition at line 448 of file KoVariable.cpp.
The documentation for this class was generated from the following files:
