#include <KoVariable.h>
Graphe d'héritage de KoDateVariable:
Types publics | |
enum | { VST_DATE_FIX = 0, VST_DATE_CURRENT = 1, VST_DATE_LAST_PRINTING = 2, VST_DATE_CREATE_FILE = 3, VST_DATE_MODIFY_FILE = 4 } |
Fonctions membres publiques | |
KoDateVariable (KoTextDocument *textdoc, short int subtype, KoVariableFormat *_varFormat, KoVariableCollection *_varColl, int _correctDate=0) | |
virtual VariableType | type () const |
virtual void | recalc () |
virtual QString | fieldCode () |
virtual void | resize () |
void | setDate (const QDate &_date) |
virtual void | saveVariable (QDomElement &parentElem) |
virtual int | correctValue () const |
virtual void | load (QDomElement &elem) |
virtual void | loadOasis (const QDomElement &elem, KoOasisContext &context) |
virtual void | saveOasis (KoXmlWriter &writer, KoSavingContext &context) const |
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. | |
virtual short int | subType () const |
Fonctions membres publiques statiques | |
static QStringList | actionTexts () |
static QString | formatStr (int &correct) |
static QString | defaultFormat () |
Attributs protégés | |
short int | m_subtype |
int | m_correctDate |
Définition à la ligne 461 du fichier KoVariable.h.
anonymous enum |
VST_DATE_FIX | |
VST_DATE_CURRENT | |
VST_DATE_LAST_PRINTING | |
VST_DATE_CREATE_FILE | |
VST_DATE_MODIFY_FILE |
Définition à la ligne 469 du fichier KoVariable.h.
KoDateVariable::KoDateVariable | ( | KoTextDocument * | textdoc, | |
short int | subtype, | |||
KoVariableFormat * | _varFormat, | |||
KoVariableCollection * | _varColl, | |||
int | _correctDate = 0 | |||
) |
Définition à la ligne 1179 du fichier KoVariable.cpp.
virtual VariableType KoDateVariable::type | ( | ) | const [inline, virtual] |
QStringList KoDateVariable::actionTexts | ( | ) | [static] |
Définition à la ligne 1370 du fichier KoVariable.cpp.
Référencé par subTypeList().
Voici le graphe d'appel pour cette fonction :
void KoDateVariable::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 1216 du fichier KoVariable.cpp.
Références KoVariableSettings::creationDate(), KoVariableSettings::lastPrintingDate(), m_correctDate, m_subtype, KoVariable::m_varColl, KoVariable::m_varValue, KoVariableSettings::modificationDate(), resize(), KoVariableCollection::variableSetting(), VST_DATE_CREATE_FILE, VST_DATE_CURRENT, VST_DATE_LAST_PRINTING, et VST_DATE_MODIFY_FILE.
Voici le graphe d'appel pour cette fonction :
QString KoDateVariable::fieldCode | ( | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1184 du fichier KoVariable.cpp.
Références m_subtype, VST_DATE_CREATE_FILE, VST_DATE_CURRENT, VST_DATE_FIX, VST_DATE_LAST_PRINTING, et VST_DATE_MODIFY_FILE.
void KoDateVariable::resize | ( | ) | [virtual] |
Reimplement this to calculate the item width It is important to start with "if ( m_deleted ) return;"
Réimplémentée à partir de KoVariable.
Définition à la ligne 1200 du fichier KoVariable.cpp.
Références KoTextCustomItem::format(), KoTextFormat::language(), et KoVariable::resize().
Référencé par recalc().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoDateVariable::setDate | ( | const QDate & | _date | ) | [inline] |
Définition à la ligne 475 du fichier KoVariable.h.
void KoDateVariable::saveVariable | ( | QDomElement & | parentElem | ) | [virtual] |
Variable should reimplement this to implement saving.
Implémente KoVariable.
Définition à la ligne 1235 du fichier KoVariable.cpp.
Références KoProperty::DateTime, m_correctDate, m_subtype, KoVariable::m_varValue, et VST_DATE_FIX.
virtual int KoDateVariable::correctValue | ( | ) | const [inline, virtual] |
void KoDateVariable::load | ( | QDomElement & | elem | ) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1257 du fichier KoVariable.cpp.
Références KoVariable::d, KoVariable::load(), m_correctDate, m_subtype, KoVariable::m_varValue, VST_DATE_CURRENT, VST_DATE_FIX, et KoTextCustomItem::y().
Voici le graphe d'appel pour cette fonction :
void KoDateVariable::loadOasis | ( | const QDomElement & | elem, | |
KoOasisContext & | context | |||
) | [virtual] |
Réimplémentée à partir de KoVariable.
Définition à la ligne 1339 du fichier KoVariable.cpp.
Références ISODurationToDays(), localName, m_correctDate, m_subtype, KoVariable::m_varValue, KoXmlNS::text, VST_DATE_CREATE_FILE, VST_DATE_CURRENT, VST_DATE_FIX, VST_DATE_LAST_PRINTING, et VST_DATE_MODIFY_FILE.
Voici le graphe d'appel pour cette fonction :
void KoDateVariable::saveOasis | ( | KoXmlWriter & | writer, | |
KoSavingContext & | context | |||
) | const [virtual] |
Save to Oasis XML
Réimplémentée à partir de KoVariable.
Définition à la ligne 1291 du fichier KoVariable.cpp.
Références KoXmlWriter::addAttribute(), daysToISODuration(), KoXmlWriter::endElement(), KoVariableFormat::formatProperties(), m_correctDate, m_subtype, KoVariable::m_varFormat, KoVariable::m_varValue, KoSavingContext::mainStyles(), KoOasisStyles::saveOasisDateStyle(), KoXmlWriter::startElement(), Py::value(), VST_DATE_CREATE_FILE, VST_DATE_CURRENT, VST_DATE_FIX, VST_DATE_LAST_PRINTING, et VST_DATE_MODIFY_FILE.
Voici le graphe d'appel pour cette fonction :
QStringList KoDateVariable::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 1381 du fichier KoVariable.cpp.
Références actionTexts().
Voici le graphe d'appel pour cette fonction :
virtual void KoDateVariable::setVariableSubType | ( | short int | subtype | ) | [inline, virtual] |
Set this variable's subtype.
Réimplémentée à partir de KoVariable.
Définition à la ligne 485 du fichier KoVariable.h.
virtual short int KoDateVariable::subType | ( | ) | const [inline, virtual] |
QString KoDateVariable::formatStr | ( | int & | correct | ) | [static] |
Ask the user and return the date format string with prefix "DATE"
Définition à la ligne 1391 du fichier KoVariable.cpp.
Références DateFormatWidget::combo1(), DateFormatWidget::correctValue(), testguiqt::dialog, KoGlobal::kofficeConfig(), DateFormatWidget::resultString(), et DateFormatWidget::updateLabel().
Référencé par KoVariableCollection::createVariable().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QString KoDateVariable::defaultFormat | ( | ) | [static] |
Return the default date format for old file.
Définition à la ligne 1386 du fichier KoVariable.cpp.
Référencé par KoVariableCollection::createVariable().
Voici le graphe d'appel pour cette fonction :
short int KoDateVariable::m_subtype [protected] |
Définition à la ligne 498 du fichier KoVariable.h.
Référencé par fieldCode(), load(), loadOasis(), recalc(), saveOasis(), et saveVariable().
int KoDateVariable::m_correctDate [protected] |
Définition à la ligne 499 du fichier KoVariable.h.
Référencé par load(), loadOasis(), recalc(), saveOasis(), et saveVariable().