#include <KoVariable.h>
Graphe d'héritage de KoPageVariable:
Types publics | |
enum | { VST_PGNUM_CURRENT = 0, VST_PGNUM_TOTAL = 1, VST_CURRENT_SECTION = 2, VST_PGNUM_PREVIOUS = 3, VST_PGNUM_NEXT = 4 } |
Fonctions membres publiques | |
KoPageVariable (KoTextDocument *textdoc, short int subtype, KoVariableFormat *varFormat, KoVariableCollection *_varColl) | |
virtual VariableType | type () const |
virtual QString | fieldCode () |
virtual QStringList | subTypeList () |
List of available subtypes (translated). Use variableSubType() to map index to ID. | |
virtual void | setVariableSubType (short int subtype) |
Set this variable's subtype. | |
void | setPgNum (int pgNum) |
void | setSectionTitle (const QString &title) |
virtual short int | subType () const |
virtual void | recalc ()=0 |
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 |
Fonctions membres publiques statiques | |
static QStringList | actionTexts () |
Attributs protégés | |
short int | m_subtype |
Définition à la ligne 663 du fichier KoVariable.h.
anonymous enum |
VST_PGNUM_CURRENT | |
VST_PGNUM_TOTAL | |
VST_CURRENT_SECTION | |
VST_PGNUM_PREVIOUS | |
VST_PGNUM_NEXT |
Définition à la ligne 671 du fichier KoVariable.h.
KoPageVariable::KoPageVariable | ( | KoTextDocument * | textdoc, | |
short int | subtype, | |||
KoVariableFormat * | varFormat, | |||
KoVariableCollection * | _varColl | |||
) |
Définition à la ligne 1836 du fichier KoVariable.cpp.
virtual VariableType KoPageVariable::type | ( | ) | const [inline, virtual] |
QStringList KoPageVariable::actionTexts | ( | ) | [static] |
Définition à la ligne 1960 du fichier KoVariable.cpp.
Référencé par subTypeList().
Voici le graphe d'appel pour cette fonction :
QString KoPageVariable::fieldCode | ( | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1841 du fichier KoVariable.cpp.
Références m_subtype, VST_CURRENT_SECTION, VST_PGNUM_CURRENT, VST_PGNUM_NEXT, VST_PGNUM_PREVIOUS, et VST_PGNUM_TOTAL.
QStringList KoPageVariable::subTypeList | ( | ) | [virtual] |
List of available subtypes (translated). Use variableSubType() to map index to ID.
Réimplémentée à partir de KoVariable.
Définition à la ligne 1971 du fichier KoVariable.cpp.
Références actionTexts().
Voici le graphe d'appel pour cette fonction :
void KoPageVariable::setVariableSubType | ( | short int | subtype | ) | [virtual] |
Set this variable's subtype.
Réimplémentée à partir de KoVariable.
Définition à la ligne 1976 du fichier KoVariable.cpp.
Références KoVariableFormatCollection::format(), KoVariableCollection::formatCollection(), m_subtype, KoVariable::m_varColl, KoVariable::setVariableFormat(), et VST_CURRENT_SECTION.
Voici le graphe d'appel pour cette fonction :
void KoPageVariable::setPgNum | ( | int | pgNum | ) | [inline] |
Définition à la ligne 681 du fichier KoVariable.h.
void KoPageVariable::setSectionTitle | ( | const QString & | title | ) |
virtual short int KoPageVariable::subType | ( | ) | const [inline, virtual] |
virtual void KoPageVariable::recalc | ( | ) | [pure 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.
void KoPageVariable::saveVariable | ( | QDomElement & | parentElem | ) | [virtual] |
Variable should reimplement this to implement saving.
Implémente KoVariable.
Définition à la ligne 1859 du fichier KoVariable.cpp.
Références m_subtype, KoVariable::m_varValue, et VST_CURRENT_SECTION.
void KoPageVariable::load | ( | QDomElement & | elem | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1870 du fichier KoVariable.cpp.
Références KoVariable::load(), m_subtype, KoVariable::m_varValue, et VST_CURRENT_SECTION.
Voici le graphe d'appel pour cette fonction :
void KoPageVariable::loadOasis | ( | const QDomElement & | elem, | |
KoOasisContext & | context | |||
) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1927 du fichier KoVariable.cpp.
Références localName, m_subtype, KoVariable::m_varValue, KoXmlNS::text, VST_CURRENT_SECTION, VST_PGNUM_CURRENT, VST_PGNUM_NEXT, VST_PGNUM_PREVIOUS, et VST_PGNUM_TOTAL.
void KoPageVariable::saveOasis | ( | KoXmlWriter & | writer, | |
KoSavingContext & | context | |||
) | const [virtual] |
Save to Oasis XML
Réimplémentée à partir de KoVariable.
Définition à la ligne 1885 du fichier KoVariable.cpp.
Références KoXmlWriter::addAttribute(), KoXmlWriter::addTextNode(), KoXmlWriter::endElement(), m_subtype, KoVariable::m_varValue, KoXmlWriter::startElement(), VST_CURRENT_SECTION, VST_PGNUM_CURRENT, VST_PGNUM_NEXT, VST_PGNUM_PREVIOUS, et VST_PGNUM_TOTAL.
Voici le graphe d'appel pour cette fonction :
short int KoPageVariable::m_subtype [protected] |
Définition à la ligne 694 du fichier KoVariable.h.
Référencé par fieldCode(), load(), loadOasis(), saveOasis(), saveVariable(), et setVariableSubType().