KoVariableFormat Class Reference
Class: KoVariableFormat Base class for a variable format - held by KWDocument. More...
#include <kovariable.h>
Inheritance diagram for KoVariableFormat:

Public Member Functions | |
virtual QCString | key () const=0 |
virtual QCString | getKey (const QString &props) const=0 |
virtual void | load (const QCString &key)=0 |
virtual QString | convert (const QVariant &data) const=0 |
virtual void | setFormatProperties (const QString &) |
virtual QString | formatProperties () const |
virtual QStringList | formatPropsList () const |
virtual QStringList | translatedFormatPropsList () const |
Detailed Description
Class: KoVariableFormat Base class for a variable format - held by KWDocument.Example of formats are time, date, string, number, floating-point number... The reason for formats to be separated is that it allows to customize the formats, to implement subformats (various date formats, etc.).
Definition at line 104 of file kovariable.h.
Member Function Documentation
|
Return a key describing this format. Used for the flyweight pattern in KoVariableFormatCollection Implemented in KoVariableDateFormat, KoVariableTimeFormat, and KoVariableStringFormat. Referenced by KoVariable::save(). |
|
Implemented in KoVariableDateFormat, KoVariableTimeFormat, and KoVariableStringFormat. |
|
Create a format from this key.
Implemented in KoVariableDateFormat, KoVariableTimeFormat, and KoVariableStringFormat. |
|
Use this format to convert a piece of data into a string.
Implemented in KoVariableDateFormat, KoVariableTimeFormat, and KoVariableStringFormat. Referenced by KoVariable::text(). |
|
Set the properties of this format, e.g. DD/MM/YYYY for a date format. WARNING: if you call this, you might be modifying a format that other variables use as well. Don't do it, use getKey. Reimplemented in KoVariableDateFormat, and KoVariableTimeFormat. Definition at line 133 of file kovariable.h. |
|
Reimplemented in KoVariableDateFormat, and KoVariableTimeFormat. Definition at line 137 of file kovariable.h. |
|
Reimplemented in KoVariableDateFormat, and KoVariableTimeFormat. Definition at line 141 of file kovariable.h. |
|
Reimplemented in KoVariableDateFormat, and KoVariableTimeFormat. Definition at line 145 of file kovariable.h. |
The documentation for this class was generated from the following file: