lib
KoVariableStringFormat Class Reference
#include <KoVariable.h>
Inheritance diagram for KoVariableStringFormat:

Detailed Description
Implementation of the string format.
Definition at line 234 of file KoVariable.h.
Public Member Functions | |
KoVariableStringFormat () | |
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 KoVariableStringFormat::convert | ( | const QVariant & | data | ) | const [virtual] |
Use this format to convert a piece of data into a string.
Implements KoVariableFormat.
Definition at line 396 of file KoVariable.cpp.
QCString KoVariableStringFormat::key | ( | ) | const [virtual] |
Return a key describing this format.
Used for the flyweight pattern in KoVariableFormatCollection
Implements KoVariableFormat.
Definition at line 407 of file KoVariable.cpp.
QCString KoVariableStringFormat::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 413 of file KoVariable.cpp.
virtual void KoVariableStringFormat::load | ( | const QCString & | ) | [inline, virtual] |
Create a format from this key.
Implements KoVariableFormat.
Definition at line 241 of file KoVariable.h.
The documentation for this class was generated from the following files: