lib

NumberType Class Reference

#include <elementtype.h>

Inheritance diagram for NumberType:
MultiElementType ElementType

Public Member Functions

 NumberType (SequenceParser *parser)
 
virtual TQFont getFont (const ContextStyle &context)
 
virtual void setUpPainter (const ContextStyle &context, TQPainter &painter)
 
virtual void saveMathML (SequenceElement *se, TQDomDocument &doc, TQDomElement de, bool oasisFormat=false)
 
- Public Member Functions inherited from MultiElementType
 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 void output ()
 
void append (ElementType *)
 
ElementType * getPrev () const
 

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

A range of elements that make up a number.

Definition at line 250 of file elementtype.h.

Constructor & Destructor Documentation

◆ NumberType()

NumberType::NumberType ( SequenceParser *  parser)

Definition at line 356 of file elementtype.cpp.

Member Function Documentation

◆ getFont()

TQFont NumberType::getFont ( const ContextStyle &  context)
virtual
Returns
the font to be used for this kind of element

Reimplemented from ElementType.

Definition at line 361 of file elementtype.cpp.

◆ saveMathML()

void NumberType::saveMathML ( SequenceElement *  se,
TQDomDocument &  doc,
TQDomElement  de,
bool  oasisFormat = false 
)
virtual

Reimplemented from ElementType.

Definition at line 371 of file elementtype.cpp.

◆ setUpPainter()

void NumberType::setUpPainter ( const ContextStyle &  context,
TQPainter &  painter 
)
virtual

sets the painters pen to a appropriate value

Reimplemented from ElementType.

Definition at line 366 of file elementtype.cpp.


The documentation for this class was generated from the following files: