lib Library API Documentation

MultiElementType Class Reference

Basis for all tokens that run along several elements. More...

#include <elementtype.h>

Inheritance diagram for MultiElementType:

Inheritance graph
[legend]
Collaboration diagram for MultiElementType:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Basis for all tokens that run along several elements.

Definition at line 173 of file elementtype.h.


Member Function Documentation

luPt MultiElementType::getSpaceBefore const ContextStyle context,
ContextStyle::TextStyle  tstyle
[virtual]
 

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

Reimplemented from ElementType.

Definition at line 256 of file elementtype.cc.

References ElementType::getSpaceAfter().

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 188 of file elementtype.h.


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.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:48:30 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003