lib Library API Documentation

KoCustomVariable Class Reference

A custom variable is a variable whose value is entered by the user. More...

#include <kovariable.h>

Inheritance diagram for KoCustomVariable:

Inheritance graph
[legend]
Collaboration diagram for KoCustomVariable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KoCustomVariable (KoTextDocument *textdoc, const QString &name, KoVariableFormat *varFormat, KoVariableCollection *_varcoll)
virtual VariableType type () const
virtual void saveVariable (QDomElement &parentElem)
virtual void load (QDomElement &elem)
virtual void loadOasis (const QDomElement &elem, KoOasisContext &context)
virtual void saveOasis (KoXmlWriter &writer, KoSavingContext &context) const
QString name () const
virtual void recalc ()
virtual QString fieldCode ()
virtual QString text (bool realValue=false)
QString value () const
void setValue (const QString &v)

Static Public Member Functions

static QStringList actionTexts ()

Detailed Description

A custom variable is a variable whose value is entered by the user.

Definition at line 531 of file kovariable.h.


Member Function Documentation

void KoCustomVariable::saveVariable QDomElement parentElem  )  [virtual]
 

Variable should reimplement this to implement saving.

Implements KoVariable.

Definition at line 1670 of file kovariable.cc.

QString KoCustomVariable::text bool  realValue = false  )  [virtual]
 

Returns the text to be displayed for this variable It doesn't need to be cached, convert() is fast, and it's the actual value (date, time etc.

) that is cached in the variable already.

Reimplemented from KoVariable.

Definition at line 1660 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.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:40:48 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003