#include <KoVariable.h>
Graphe d'héritage de KoNoteVariable:
Fonctions membres publiques | |
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 |
Fonctions membres publiques statiques | |
static QStringList | actionTexts () |
Attributs protégés | |
QDate | m_createdNoteDate |
Définition à la ligne 733 du fichier KoVariable.h.
KoNoteVariable::KoNoteVariable | ( | KoTextDocument * | textdoc, | |
const QString & | _note, | |||
KoVariableFormat * | varFormat, | |||
KoVariableCollection * | _varColl | |||
) |
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.
Réimplémentée à partir de KoVariable.
Définition à la ligne 2617 du fichier KoVariable.cpp.
Références KoTextFormat::color(), KoVariableSettings::displayComment(), KoTextDocument::dontDrawingNoteVariable(), KoVariable::drawCustomItem(), KoTextCustomItem::format(), KoVariable::m_varColl, KoTextFormat::textBackgroundColor(), KoTextCustomItem::textDocument(), et KoVariableCollection::variableSetting().
Voici le graphe d'appel pour cette fonction :
virtual VariableType KoNoteVariable::type | ( | ) | const [inline, virtual] |
QStringList KoNoteVariable::actionTexts | ( | ) | [static] |
Définition à la ligne 2600 du fichier KoVariable.cpp.
QString KoNoteVariable::fieldCode | ( | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 2531 du fichier KoVariable.cpp.
Référencé par text().
Voici le graphe d'appel pour cette fonction :
void KoNoteVariable::saveVariable | ( | QDomElement & | parentElem | ) | [virtual] |
Variable should reimplement this to implement saving.
Implémente KoVariable.
Définition à la ligne 2578 du fichier KoVariable.cpp.
Références KoVariable::m_varValue.
void KoNoteVariable::load | ( | QDomElement & | elem | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 2585 du fichier KoVariable.cpp.
Références KoVariable::load(), et KoVariable::m_varValue.
Voici le graphe d'appel pour cette fonction :
void KoNoteVariable::loadOasis | ( | const QDomElement & | elem, | |
KoOasisContext & | context | |||
) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 2541 du fichier KoVariable.cpp.
Références KoXmlNS::dc, localName, m_createdNoteDate, KoVariable::m_varValue, KoDom::namedItemNS(), note(), KoXmlNS::office, KoXmlNS::text, et text().
Voici le graphe d'appel pour cette fonction :
void KoNoteVariable::saveOasis | ( | KoXmlWriter & | writer, | |
KoSavingContext & | context | |||
) | const [virtual] |
Save to Oasis XML
Réimplémentée à partir de KoVariable.
Définition à la ligne 2562 du fichier KoVariable.cpp.
Références KoXmlWriter::addTextNode(), KoXmlWriter::endElement(), m_createdNoteDate, KoVariable::m_varValue, KoXmlWriter::startElement(), et text().
Voici le graphe d'appel pour cette fonction :
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.
Réimplémentée à partir de KoVariable.
Définition à la ligne 2605 du fichier KoVariable.cpp.
Références KoVariableSettings::displayComment(), KoVariableSettings::displayFieldCode(), fieldCode(), KoVariable::m_varColl, et KoVariableCollection::variableSetting().
Référencé par loadOasis(), et saveOasis().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QString KoNoteVariable::note | ( | ) | const [inline] |
Définition à la ligne 751 du fichier KoVariable.h.
Référencé par KoTextView::copyTextOfComment(), loadOasis(), et KoTextViewIface::noteVariableText().
Voici le graphe d'appel pour cette fonction :
void KoNoteVariable::setNote | ( | const QString & | _note | ) | [inline] |
Définition à la ligne 752 du fichier KoVariable.h.
Référencé par KoTextViewIface::setNoteVariableText().
Voici le graphe d'appel pour cette fonction :
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().
Réimplémentée à partir de KoTextCustomItem.
Définition à la ligne 2595 du fichier KoVariable.cpp.
Références KoVariable::resize().
Voici le graphe d'appel pour cette fonction :
QString KoNoteVariable::createdNote | ( | ) | const |
QDate KoNoteVariable::m_createdNoteDate [protected] |
Définition à la ligne 757 du fichier KoVariable.h.
Référencé par createdNote(), loadOasis(), et saveOasis().