lib
KoFieldVariable Class Reference
#include <KoVariable.h>
Inheritance diagram for KoFieldVariable:

Detailed Description
Any variable that is a string, and whose value is automatically determined - as opposed to custom variables whose value is entered by the user.
Definition at line 582 of file KoVariable.h.
Public Types | |
enum | FieldSubType { VST_NONE = -1, VST_FILENAME = 0, VST_DIRECTORYNAME = 1, VST_AUTHORNAME = 2, VST_EMAIL = 3, VST_COMPANYNAME = 4, VST_PATHFILENAME = 5, VST_FILENAMEWITHOUTEXTENSION = 6, VST_TELEPHONE_WORK = 7, VST_FAX = 8, VST_COUNTRY = 9, VST_TITLE = 10, VST_ABSTRACT = 11, VST_POSTAL_CODE = 12, VST_CITY = 13, VST_STREET = 14, VST_AUTHORTITLE = 15, VST_INITIAL = 16, VST_TELEPHONE_HOME = 17, VST_SUBJECT = 18, VST_KEYWORDS = 19, VST_AUTHORPOSITION = 20 } |
Public Member Functions | |
KoFieldVariable (KoTextDocument *textdoc, short int subtype, KoVariableFormat *varFormat, KoVariableCollection *_varColl, KoDocument *_doc) | |
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 |
virtual QString | fieldCode () |
virtual void | recalc () |
virtual QString | text (bool realValue=false) |
QString | value () const |
virtual short int | variableSubType (short int menuNumber) |
virtual QStringList | subTypeList () |
virtual void | setVariableSubType (short int subtype) |
virtual short int | subType () const |
Static Public Member Functions | |
static QStringList | actionTexts () |
static FieldSubType | fieldSubType (short int menuNumber) |
Protected Attributes | |
short int | m_subtype |
KoDocument * | m_doc |
Member Function Documentation
|
Converts
Definition at line 2353 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 2207 of file KoVariable.cpp. |
|
Save to Oasis XML.
Reimplemented from KoVariable. Definition at line 2129 of file KoVariable.cpp. |
|
Variable should reimplement this to implement saving.
Implements KoVariable. Definition at line 2047 of file KoVariable.cpp. |
|
Set this variable's subtype.
Reimplemented from KoVariable. Definition at line 622 of file KoVariable.h. |
|
List of available subtypes (translated). Use variableSubType() to map index to ID.
Reimplemented from KoVariable. Definition at line 2408 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 2038 of file KoVariable.cpp. |
|
Converts
Reimplemented from KoVariable. Definition at line 2348 of file KoVariable.cpp. |
The documentation for this class was generated from the following files: