KoDateVariable Class Reference
Date-related variables. More...
#include <kovariable.h>
Inheritance diagram for KoDateVariable:

Public Types | |
enum | { VST_DATE_FIX = 0, VST_DATE_CURRENT = 1, VST_DATE_LAST_PRINTING = 2, VST_DATE_CREATE_FILE = 3, VST_DATE_MODIFY_FILE = 4 } |
Public Member Functions | |
KoDateVariable (KoTextDocument *textdoc, short int subtype, KoVariableFormat *_varFormat, KoVariableCollection *_varColl, int _correctDate=0) | |
virtual VariableType | type () const |
virtual void | recalc () |
virtual QString | fieldCode () |
virtual void | resize () |
void | setDate (const QDate &_date) |
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_correctDate |
Detailed Description
Date-related variables.
Definition at line 427 of file kovariable.h.
Member Function Documentation
|
Variable should reimplement this to implement saving.
Implements KoVariable. Definition at line 888 of file kovariable.cc. |
|
List of available subtypes (translated). Use variableSubType() to map index to ID.
Reimplemented from KoVariable. Definition at line 954 of file kovariable.cc. |
|
Set this variable's subtype.
Reimplemented from KoVariable. Definition at line 448 of file kovariable.h. |
|
Ask the user and return the date format string with prefix "DATE".
Definition at line 964 of file kovariable.cc. |
|
Return the default date format for old file.
Definition at line 959 of file kovariable.cc. |
The documentation for this class was generated from the following files: