lib
KoNoteVariable Class Reference
Inheritance diagram for KoNoteVariable:

Detailed Description
Definition at line 730 of file KoVariable.h.
Public Member Functions | |
KoNoteVariable (KoTextDocument *textdoc, const QString &_note, 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 | note () const |
void | setNote (const QString &_note) |
virtual void | recalc () |
QString | createdNote () const |
Static Public Member Functions | |
static QStringList | actionTexts () |
Protected Attributes | |
QDate | m_createdNoteDate |
Member Function Documentation
void KoNoteVariable::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 2599 of file KoVariable.cpp.
void KoNoteVariable::saveVariable | ( | QDomElement & | parentElem | ) | [virtual] |
Variable should reimplement this to implement saving.
Implements KoVariable.
Definition at line 2560 of file KoVariable.cpp.
void KoNoteVariable::saveOasis | ( | KoXmlWriter & | writer, | |
KoSavingContext & | context | |||
) | const [virtual] |
QString KoNoteVariable::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 2587 of file KoVariable.cpp.
void KoNoteVariable::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 2577 of file KoVariable.cpp.
The documentation for this class was generated from the following files: