#include <KoVariable.h>
Graphe d'héritage de KoCustomVariable:
Fonctions membres publiques | |
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) |
Fonctions membres publiques statiques | |
static QStringList | actionTexts () |
Définition à la ligne 553 du fichier KoVariable.h.
KoCustomVariable::KoCustomVariable | ( | KoTextDocument * | textdoc, | |
const QString & | name, | |||
KoVariableFormat * | varFormat, | |||
KoVariableCollection * | _varcoll | |||
) |
virtual VariableType KoCustomVariable::type | ( | ) | const [inline, virtual] |
QStringList KoCustomVariable::actionTexts | ( | ) | [static] |
Définition à la ligne 1763 du fichier KoVariable.cpp.
void KoCustomVariable::saveVariable | ( | QDomElement & | parentElem | ) | [virtual] |
Variable should reimplement this to implement saving.
Implémente KoVariable.
Définition à la ligne 1709 du fichier KoVariable.cpp.
Références KoVariable::m_varValue, et value().
Voici le graphe d'appel pour cette fonction :
void KoCustomVariable::load | ( | QDomElement & | elem | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1717 du fichier KoVariable.cpp.
Références KoVariable::load(), KoVariable::m_varValue, et setValue().
Voici le graphe d'appel pour cette fonction :
void KoCustomVariable::loadOasis | ( | const QDomElement & | elem, | |
KoOasisContext & | context | |||
) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1728 du fichier KoVariable.cpp.
Références localName, KoVariable::m_varValue, setValue(), et KoXmlNS::text.
Voici le graphe d'appel pour cette fonction :
void KoCustomVariable::saveOasis | ( | KoXmlWriter & | writer, | |
KoSavingContext & | context | |||
) | const [virtual] |
Save to Oasis XML
Réimplémentée à partir de KoVariable.
Définition à la ligne 1744 du fichier KoVariable.cpp.
Références KoXmlWriter::addAttribute(), KoXmlWriter::addTextNode(), KoXmlWriter::endElement(), KoVariable::m_varValue, KoXmlWriter::startElement(), et value().
Voici le graphe d'appel pour cette fonction :
QString KoCustomVariable::name | ( | ) | const [inline] |
Définition à la ligne 567 du fichier KoVariable.h.
Référencé par KoCustomVarDialog::KoCustomVarDialog(), et KoCustomVariablesListItem::setVariable().
Voici le graphe d'appel pour cette fonction :
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().
Réimplémentée à partir de KoTextCustomItem.
Définition à la ligne 1768 du fichier KoVariable.cpp.
Références KoVariable::resize().
Voici le graphe d'appel pour cette fonction :
QString KoCustomVariable::fieldCode | ( | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1694 du fichier KoVariable.cpp.
Référencé par text().
Voici le graphe d'appel pour cette fonction :
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.
Réimplémentée à partir de KoVariable.
Définition à la ligne 1699 du fichier KoVariable.cpp.
Références KoVariableSettings::displayFieldCode(), fieldCode(), KoVariable::m_varColl, value(), et KoVariableCollection::variableSetting().
Voici le graphe d'appel pour cette fonction :
QString KoCustomVariable::value | ( | ) | const |
Définition à la ligne 1753 du fichier KoVariable.cpp.
Références KoVariableCollection::getVariableValue(), KoVariable::m_varColl, et KoVariable::m_varValue.
Référencé par KoCustomVariablesListItem::applyValue(), KoCustomVarDialog::KoCustomVarDialog(), saveOasis(), saveVariable(), KoCustomVariablesListItem::setVariable(), et text().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoCustomVariable::setValue | ( | const QString & | v | ) |
Définition à la ligne 1758 du fichier KoVariable.cpp.
Références KoVariable::m_varColl, KoVariable::m_varValue, et KoVariableCollection::setVariableValue().
Référencé par KoCustomVariablesListItem::applyValue(), load(), loadOasis(), et KoCustomVarDialog::slotEditOk().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :