KoPgNumVariable Class Reference
"current page number" and "number of pages" variables This is a base class, it must be inherited by applications, to provide recalc(). More...
#include <kovariable.h>
Inheritance diagram for KoPgNumVariable:

Public Types | |
enum | { VST_PGNUM_CURRENT = 0, VST_PGNUM_TOTAL = 1, VST_CURRENT_SECTION = 2, VST_PGNUM_PREVIOUS = 3, VST_PGNUM_NEXT = 4 } |
Public Member Functions | |
KoPgNumVariable (KoTextDocument *textdoc, short int subtype, KoVariableFormat *varFormat, KoVariableCollection *_varColl) | |
virtual VariableType | type () const |
virtual QString | fieldCode () |
virtual QStringList | subTypeText () |
virtual void | setVariableSubType (short int 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) |
Static Public Member Functions | |
QStringList | actionTexts () |
Protected Attributes | |
short int | m_subtype |
Detailed Description
"current page number" and "number of pages" variables This is a base class, it must be inherited by applications, to provide recalc().TODO: rename KoPageVariable.
Definition at line 615 of file kovariable.h.
Member Function Documentation
|
List of available subtypes (translated). Use variableSubType() to map index to ID.
Reimplemented from KoVariable. Definition at line 1369 of file kovariable.cc. |
|
Set this variable's subtype.
Reimplemented from KoVariable. Definition at line 1374 of file kovariable.cc. References KoVariableFormatCollection::format(), and setVariableSubType(). Referenced by setVariableSubType(). |
|
Variable should reimplement this to implement saving.
Implements KoVariable. Definition at line 1332 of file kovariable.cc. References saveVariable(). Referenced by saveVariable(). |
The documentation for this class was generated from the following files: