lib
KoCustomVariable Class Reference
#include <KoVariable.h>
Inheritance diagram for KoCustomVariable:

Detailed Description
A custom variable is a variable whose value is entered by the user.
Definition at line 550 of file KoVariable.h.
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 () |
Member Function Documentation
void KoCustomVariable::recalc | ( | ) | [virtual] |
Reimplemented by KoVariable to recalculate the value.
It exists at the KoTextCustomItem level so that KoTextParag::setCustomItem can call it to set the initial value. This should call always resize().
Reimplemented from KoTextCustomItem.
Definition at line 1749 of file KoVariable.cpp.
void KoCustomVariable::saveOasis | ( | KoXmlWriter & | writer, | |
KoSavingContext & | context | |||
) | const [virtual] |
void KoCustomVariable::saveVariable | ( | QDomElement & | parentElem | ) | [virtual] |
Variable should reimplement this to implement saving.
Implements KoVariable.
Definition at line 1690 of file KoVariable.cpp.
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 1680 of file KoVariable.cpp.
The documentation for this class was generated from the following files: