lib Library API Documentation

KoTimeVariable Class Reference

Time-related variables. More...

#include <kovariable.h>

Inheritance diagram for KoTimeVariable:

KoVariable List of all members.

Public Types

enum  { VST_TIME_FIX = 0, VST_TIME_CURRENT = 1 }

Public Member Functions

 KoTimeVariable (KoTextDocument *textdoc, short int subtype, KoVariableFormat *varFormat, KoVariableCollection *_varColl, int _correct)
virtual VariableType type () const
virtual void recalc ()
virtual void resize ()
virtual QString fieldCode ()
void setTime (const QTime &_time)
virtual void saveVariable (QDomElement &parentElem)
virtual int correctValue () const
virtual void load (QDomElement &elem)
virtual QStringList subTypeText ()
virtual void setVariableSubType (short int subtype)
virtual short int subType () const

Static Public Member Functions

QStringList actionTexts ()
QCString formatStr (int &_correct)
QCString defaultFormat ()

Protected Attributes

short int m_subtype
int m_correctTime

Detailed Description

Time-related variables.

Definition at line 468 of file kovariable.h.


Member Function Documentation

void KoTimeVariable::saveVariable QDomElement parentElem  )  [virtual]
 

Variable should reimplement this to implement saving.

Implements KoVariable.

Definition at line 1071 of file kovariable.cc.

References saveVariable().

Referenced by saveVariable().

QStringList KoTimeVariable::subTypeText  )  [virtual]
 

List of available subtypes (translated). Use variableSubType() to map index to ID.

Reimplemented from KoVariable.

Definition at line 1121 of file kovariable.cc.

virtual void KoTimeVariable::setVariableSubType short int  subtype  )  [inline, virtual]
 

Set this variable's subtype.

Reimplemented from KoVariable.

Definition at line 490 of file kovariable.h.

QCString KoTimeVariable::formatStr int &  _correct  )  [static]
 

Returns the time format string with prefix "TIME".

Definition at line 1126 of file kovariable.cc.

References formatStr().

Referenced by formatStr().

QCString KoTimeVariable::defaultFormat  )  [static]
 

Return the default date format for old file.

Definition at line 1188 of file kovariable.cc.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 06:54:23 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003