lib

KoStatisticVariable Class Reference

Inheritance diagram for KoStatisticVariable:

KoVariable KoTextCustomItem List of all members.

Detailed Description

Definition at line 758 of file KoVariable.h.


Public Types

enum  {
  VST_STATISTIC_NB_WORD = 0, VST_STATISTIC_NB_SENTENCE = 1, VST_STATISTIC_NB_LINES = 2, VST_STATISTIC_NB_CHARACTERE = 3,
  VST_STATISTIC_NB_NON_WHITESPACE_CHARACTERE = 4, VST_STATISTIC_NB_SYLLABLE = 5, VST_STATISTIC_NB_FRAME = 6, VST_STATISTIC_NB_EMBEDDED = 7,
  VST_STATISTIC_NB_PICTURE = 8, VST_STATISTIC_NB_TABLE = 9
}

Public Member Functions

 KoStatisticVariable (KoTextDocument *textdoc, short int subtype, KoVariableFormat *varFormat, KoVariableCollection *_varColl)
virtual VariableType type () const
virtual QStringList subTypeList ()
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 short int subType () const
virtual void setVariableSubType (short int subtype)
QString name () const
virtual QString fieldCode ()
QString value () const
void setValue (const QString &v)

Static Public Member Functions

static QStringList actionTexts ()
static void setExtendedType (bool _b)
static bool extendedType ()

Protected Attributes

short int m_subtype

Static Protected Attributes

static bool m_extendedType

Member Function Documentation

QStringList KoStatisticVariable::subTypeList (  )  [virtual]

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

Reimplemented from KoVariable.

Definition at line 2684 of file KoVariable.cpp.

void KoStatisticVariable::saveVariable ( QDomElement &  parentElem  )  [virtual]

Variable should reimplement this to implement saving.

Implements KoVariable.

Definition at line 2690 of file KoVariable.cpp.

void KoStatisticVariable::saveOasis ( KoXmlWriter writer,
KoSavingContext context 
) const [virtual]

Save to Oasis XML.

Reimplemented from KoVariable.

Definition at line 2769 of file KoVariable.cpp.

void KoStatisticVariable::setVariableSubType ( short int  subtype  )  [virtual]

Set this variable's subtype.

Reimplemented from KoVariable.

Definition at line 2675 of file KoVariable.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys