lib
KoVariableNumberFormat Class Reference
Inheritance diagram for KoVariableNumberFormat:

Detailed Description
Definition at line 245 of file KoVariable.h.
Public Member Functions | |
KoVariableNumberFormat () | |
virtual QString | convert (const QVariant &data) const |
virtual QCString | key () const |
virtual QCString | getKey (const QString &props) const |
virtual void | load (const QCString &) |
Member Function Documentation
QString KoVariableNumberFormat::convert | ( | const QVariant & | data | ) | const [virtual] |
Use this format to convert a piece of data into a string.
Implements KoVariableFormat.
Definition at line 420 of file KoVariable.cpp.
QCString KoVariableNumberFormat::key | ( | ) | const [virtual] |
Return a key describing this format.
Used for the flyweight pattern in KoVariableFormatCollection
Implements KoVariableFormat.
Definition at line 431 of file KoVariable.cpp.
QCString KoVariableNumberFormat::getKey | ( | const QString & | props | ) | const [virtual] |
- Returns:
- the key for a given set of properties.
Use this key to lookup the format in the "variable format" collection.
- Parameters:
-
props properties of this format, e.g. DD/MM/YYYY for a date format.
Implements KoVariableFormat.
Definition at line 436 of file KoVariable.cpp.
virtual void KoVariableNumberFormat::load | ( | const QCString & | ) | [inline, virtual] |
Create a format from this key.
Implements KoVariableFormat.
Definition at line 252 of file KoVariable.h.
The documentation for this class was generated from the following files: