lib

#include <KoVariable.h>

Inheritance diagram for KoVariableTimeFormat:
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 &)
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 "time" formats.

Definition at line 201 of file KoVariable.h.

Constructor & Destructor Documentation

◆ KoVariableTimeFormat()

KoVariableTimeFormat::KoVariableTimeFormat ( )

Definition at line 331 of file KoVariable.cpp.

Member Function Documentation

◆ convert()

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

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

Implements KoVariableFormat.

Definition at line 342 of file KoVariable.cpp.

◆ formatProperties()

virtual TQString KoVariableTimeFormat::formatProperties ( ) const
inlinevirtual
Returns
the format string (e.g. hh:mm:ss)

Reimplemented from KoVariableFormat.

Definition at line 215 of file KoVariable.h.

◆ formatPropsList()

virtual TQStringList KoVariableTimeFormat::formatPropsList ( ) const
inlinevirtual
Returns
the list of available properties strings (e.g. hh:mm:ss)

Reimplemented from KoVariableFormat.

Definition at line 218 of file KoVariable.h.

◆ getKey()

TQCString KoVariableTimeFormat::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 361 of file KoVariable.cpp.

◆ key()

TQCString KoVariableTimeFormat::key ( ) const
virtual

Return a key describing this format.

Used for the flyweight pattern in KoVariableFormatCollection

Implements KoVariableFormat.

Definition at line 356 of file KoVariable.cpp.

◆ load()

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

Create a format from this key.

Implements KoVariableFormat.

Definition at line 335 of file KoVariable.cpp.

◆ setFormatProperties()

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

Set the format string (e.g. hh:mm:ss).

Reimplemented from KoVariableFormat.

Definition at line 211 of file KoVariable.h.

◆ staticFormatPropsList()

TQStringList KoVariableTimeFormat::staticFormatPropsList ( )
static

Definition at line 368 of file KoVariable.cpp.

◆ staticTranslatedFormatPropsList()

TQStringList KoVariableTimeFormat::staticTranslatedFormatPropsList ( )
static

Definition at line 381 of file KoVariable.cpp.

◆ translatedFormatPropsList()

virtual TQStringList KoVariableTimeFormat::translatedFormatPropsList ( ) const
inlinevirtual
Returns
the translated version of the list of format properties

Reimplemented from KoVariableFormat.

Definition at line 221 of file KoVariable.h.


The documentation for this class was generated from the following files: