lib Library API Documentation

KoDateVariable Class Reference

Date-related variables. More...

#include <kovariable.h>

Inheritance diagram for KoDateVariable:

Inheritance graph
[legend]
Collaboration diagram for KoDateVariable:

Collaboration graph
[legend]
List of all members.

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

void KoDateVariable::saveVariable QDomElement parentElem  )  [virtual]
 

Variable should reimplement this to implement saving.

Implements KoVariable.

Definition at line 888 of file kovariable.cc.

QStringList KoDateVariable::subTypeText  )  [virtual]
 

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

Reimplemented from KoVariable.

Definition at line 954 of file kovariable.cc.

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

Set this variable's subtype.

Reimplemented from KoVariable.

Definition at line 448 of file kovariable.h.

QCString KoDateVariable::formatStr int &  correct  )  [static]
 

Ask the user and return the date format string with prefix "DATE".

Definition at line 964 of file kovariable.cc.

QCString KoDateVariable::defaultFormat  )  [static]
 

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:
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 Sun Mar 20 14:26:11 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003