lib

#include <KoVariable.h>

Inheritance diagram for KoVariableDateFormat:
KoVariableFormat

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 221 of file KoVariable.cpp.

Member Function Documentation

◆ convert()

TQString KoVariableDateFormat::convert ( const TQVariant &  data) const
virtual

Use this format to convert a piece of data into a string.

Implements KoVariableFormat.

Definition at line 225 of file KoVariable.cpp.

◆ formatProperties()

virtual TQString KoVariableDateFormat::formatProperties ( ) const
inlinevirtual
Returns
the format string (e.g. DDMMYYYY)

Reimplemented from KoVariableFormat.

Definition at line 183 of file KoVariable.h.

◆ formatPropsList()

virtual TQStringList KoVariableDateFormat::formatPropsList ( ) const
inlinevirtual
Returns
the list of available format strings

Reimplemented from KoVariableFormat.

Definition at line 186 of file KoVariable.h.

◆ getKey()

TQCString KoVariableDateFormat::getKey ( const TQString &  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
propsproperties of this format, e.g. DD/MM/YYYY for a date format.

Implements KoVariableFormat.

Definition at line 258 of file KoVariable.cpp.

◆ key()

TQCString KoVariableDateFormat::key ( ) const
virtual

Return a key describing this format.

Used for the flyweight pattern in KoVariableFormatCollection

Implements KoVariableFormat.

Definition at line 253 of file KoVariable.cpp.

◆ load()

void KoVariableDateFormat::load ( const TQCString &  key)
virtual

Create a format from this key.

Implements KoVariableFormat.

Definition at line 263 of file KoVariable.cpp.

◆ setFormatProperties()

virtual void KoVariableDateFormat::setFormatProperties ( const TQString &  props)
inlinevirtual

Set the format string (e.g. DDMMYYYY)

Reimplemented from KoVariableFormat.

Definition at line 179 of file KoVariable.h.

◆ staticFormatPropsList()

TQStringList KoVariableDateFormat::staticFormatPropsList ( )
static

Definition at line 276 of file KoVariable.cpp.

◆ staticTranslatedFormatPropsList()

TQStringList KoVariableDateFormat::staticTranslatedFormatPropsList ( )
static

Definition at line 304 of file KoVariable.cpp.

◆ translatedFormatPropsList()

virtual TQStringList KoVariableDateFormat::translatedFormatPropsList ( ) const
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: