lib

MultiElementType Class Reference

#include <elementtype.h>

Inheritance diagram for MultiElementType:
ElementType NameType NumberType TextType

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 TQString text (SequenceElement *) const
 
- Public Member Functions inherited from ElementType
 ElementType (SequenceParser *parser)
 
virtual bool isInvisible (const TextElement &) const
 
uint start () const
 
uint end () const
 
virtual luPt getSpaceAfter (MultiElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
 
virtual luPt getSpaceAfter (PunctuationType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
 
virtual luPt getSpaceAfter (BracketType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
 
virtual luPt getSpaceAfter (ComplexElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
 
virtual TQFont getFont (const ContextStyle &context)
 
virtual void setUpPainter (const ContextStyle &context, TQPainter &painter)
 
virtual void output ()
 
void append (ElementType *)
 
ElementType * getPrev () const
 
virtual void saveMathML (SequenceElement *se, TQDomDocument &doc, TQDomElement de, bool oasisFormat=false)
 

Additional Inherited Members

- Static Public Member Functions inherited from ElementType
static int getEvilDestructionCount ()
 
- Protected Member Functions inherited from ElementType
void setStart (uint start)
 
void setEnd (uint end)
 
luPt thinSpaceIfNotScript (const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
 
luPt mediumSpaceIfNotScript (const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
 
luPt thickSpaceIfNotScript (const ContextStyle &context, ContextStyle::TextStyle tstyle, double factor)
 

Detailed Description

Basis for all tokens that run along several elements.

Definition at line 202 of file elementtype.h.

Constructor & Destructor Documentation

◆ MultiElementType()

MultiElementType::MultiElementType ( SequenceParser *  parser)

Definition at line 257 of file elementtype.cpp.

Member Function Documentation

◆ getSpaceAfter() [1/3]

luPt MultiElementType::getSpaceAfter ( InnerElementType *  type,
const ContextStyle &  context,
ContextStyle::TextStyle  tstyle,
double  factor 
)
virtual

Reimplemented from ElementType.

Definition at line 293 of file elementtype.cpp.

◆ getSpaceAfter() [2/3]

luPt MultiElementType::getSpaceAfter ( OperatorType *  type,
const ContextStyle &  context,
ContextStyle::TextStyle  tstyle,
double  factor 
)
virtual

Reimplemented from ElementType.

Definition at line 277 of file elementtype.cpp.

◆ getSpaceAfter() [3/3]

luPt MultiElementType::getSpaceAfter ( RelationType *  type,
const ContextStyle &  context,
ContextStyle::TextStyle  tstyle,
double  factor 
)
virtual

Reimplemented from ElementType.

Definition at line 285 of file elementtype.cpp.

◆ getSpaceBefore()

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.cpp.

◆ multiElement()

virtual bool MultiElementType::multiElement ( ) const
inlinevirtual

Reimplemented from ElementType.

Definition at line 222 of file elementtype.h.

◆ text()

virtual TQString MultiElementType::text ( SequenceElement *  ) const
inlinevirtual
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: