lib
KoLinkVariable Class Reference
Inheritance diagram for KoLinkVariable:

Detailed Description
Definition at line 695 of file KoVariable.h.
Public Member Functions | |
KoLinkVariable (KoTextDocument *textdoc, const QString &_linkName, const QString &_ulr, KoVariableFormat *varFormat, KoVariableCollection *_varColl) | |
virtual void | drawCustomItem (QPainter *p, int x, int y, int wpix, int hpix, int ascentpix, int, int, int, int, const QColorGroup &cg, bool selected, int offset, bool drawingShadow) |
virtual VariableType | type () const |
virtual QString | fieldCode () |
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 |
virtual QString | text (bool realValue=false) |
QString | value () const |
QString | url () const |
virtual void | recalc () |
void | setLink (const QString &_linkName, const QString &_url) |
Static Public Member Functions | |
static QStringList | actionTexts () |
Protected Attributes | |
QString | m_url |
Member Function Documentation
void KoLinkVariable::drawCustomItem | ( | QPainter * | p, | |
int | x, | |||
int | y, | |||
int | wpix, | |||
int | hpix, | |||
int | ascentpix, | |||
int | , | |||
int | , | |||
int | , | |||
int | , | |||
const QColorGroup & | cg, | |||
bool | selected, | |||
int | offset, | |||
bool | drawingShadow | |||
) | [virtual] |
All coordinates are in pixels.
Reimplemented from KoVariable.
Definition at line 2488 of file KoVariable.cpp.
void KoLinkVariable::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 2477 of file KoVariable.cpp.
void KoLinkVariable::saveOasis | ( | KoXmlWriter & | writer, | |
KoSavingContext & | context | |||
) | const [virtual] |
void KoLinkVariable::saveVariable | ( | QDomElement & | parentElem | ) | [virtual] |
Variable should reimplement this to implement saving.
Implements KoVariable.
Definition at line 2458 of file KoVariable.cpp.
QString KoLinkVariable::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 2450 of file KoVariable.cpp.
The documentation for this class was generated from the following files: