lib

MultiElementType Class Reference

#include <elementtype.h>

Inheritance diagram for MultiElementType:

ElementType NameType NumberType TextType List of all members.

Detailed Description

Basis for all tokens that run along several elements.

Definition at line 202 of file elementtype.h.


Public Member Functions

 MultiElementType (SequenceParser *parser)
virtual luPt getSpaceBefore (const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (OperatorType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (RelationType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual luPt getSpaceAfter (InnerElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
virtual bool multiElement () const
virtual QString text (SequenceElement *) const

Member Function Documentation

luPt MultiElementType::getSpaceBefore ( const ContextStyle context,
ContextStyle::TextStyle  tstyle,
double  factor 
) [virtual]

Returns:
the space to be left before each char for the given style and font size.

Reimplemented from ElementType.

Definition at line 267 of file elementtype.cc.

virtual QString MultiElementType::text ( SequenceElement  )  const [inline, virtual]

Returns:
the spanned text.

seq must be the original parent sequence.

Reimplemented from ElementType.

Definition at line 228 of file elementtype.h.


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