#include <KoVariable.h>
Public Member Functions | |
| virtual TQString | convert (const TQVariant &data) const |
| virtual TQCString | key () const |
| virtual TQCString | getKey (const TQString &props) const |
| virtual void | load (const TQCString &key) |
| virtual void | setFormatProperties (const TQString &props) |
| virtual TQString | formatProperties () const |
| virtual TQStringList | formatPropsList () const |
| virtual TQStringList | translatedFormatPropsList () const |
Static Public Member Functions | |
| static TQStringList | staticFormatPropsList () |
| static TQStringList | staticTranslatedFormatPropsList () |
Detailed Description
Implementation of the "date" formats TODO: merge with KoVariableTimeFormat, for a single TQDateTime-based class.
Definition at line 169 of file KoVariable.h.
Constructor & Destructor Documentation
◆ KoVariableDateFormat()
| KoVariableDateFormat::KoVariableDateFormat | ( | ) |
Definition at line 220 of file KoVariable.cpp.
Member Function Documentation
◆ convert()
|
virtual |
Use this format to convert a piece of data into a string.
Implements KoVariableFormat.
Definition at line 224 of file KoVariable.cpp.
◆ formatProperties()
|
inlinevirtual |
- Returns
- the format string (e.g. DDMMYYYY)
Reimplemented from KoVariableFormat.
Definition at line 183 of file KoVariable.h.
◆ formatPropsList()
|
inlinevirtual |
- Returns
- the list of available format strings
Reimplemented from KoVariableFormat.
Definition at line 186 of file KoVariable.h.
◆ getKey()
|
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 257 of file KoVariable.cpp.
◆ key()
|
virtual |
Return a key describing this format.
Used for the flyweight pattern in KoVariableFormatCollection
Implements KoVariableFormat.
Definition at line 252 of file KoVariable.cpp.
◆ load()
|
virtual |
Create a format from this key.
Implements KoVariableFormat.
Definition at line 262 of file KoVariable.cpp.
◆ setFormatProperties()
|
inlinevirtual |
Set the format string (e.g. DDMMYYYY).
Reimplemented from KoVariableFormat.
Definition at line 179 of file KoVariable.h.
◆ staticFormatPropsList()
|
static |
Definition at line 275 of file KoVariable.cpp.
◆ staticTranslatedFormatPropsList()
|
static |
Definition at line 303 of file KoVariable.cpp.
◆ translatedFormatPropsList()
|
inlinevirtual |
- Returns
- the translated version of the list of formats
Reimplemented from KoVariableFormat.
Definition at line 189 of file KoVariable.h.
The documentation for this class was generated from the following files:
