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
|
All coordinates are in pixels.
Reimplemented from KoVariable. Definition at line 2597 of file KoVariable.cpp. |
|
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 2575 of file KoVariable.cpp. |
|
Save to Oasis XML.
Reimplemented from KoVariable. Definition at line 2542 of file KoVariable.cpp. |
|
Variable should reimplement this to implement saving.
Implements KoVariable. Definition at line 2558 of file KoVariable.cpp. |
|
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 2585 of file KoVariable.cpp. |
The documentation for this class was generated from the following files: