lib Library API Documentation

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:

KoVariable List of all members.

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

QStringList KoPgNumVariable::subTypeText  )  [virtual]
 

List of available subtypes (translated). Use variableSubType() to map index to ID.

Reimplemented from KoVariable.

Definition at line 1369 of file kovariable.cc.

void KoPgNumVariable::setVariableSubType short int  type  )  [virtual]
 

Set this variable's subtype.

Reimplemented from KoVariable.

Definition at line 1374 of file kovariable.cc.

References KoVariableFormatCollection::format(), and setVariableSubType().

Referenced by setVariableSubType().

void KoPgNumVariable::saveVariable QDomElement parentElem  )  [virtual]
 

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:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:04:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003