ElementType Class Reference
Basis of all types. More...
#include <elementtype.h>
Inheritance diagram for ElementType:

Public Member Functions | |
ElementType (SequenceParser *parser) | |
virtual bool | isInvisible (const TextElement &) const |
virtual QString | text (SequenceElement *seq) const |
uint | start () const |
uint | end () const |
virtual luPt | getSpaceBefore (const ContextStyle &context, ContextStyle::TextStyle tstyle) |
virtual luPt | getSpaceAfter (MultiElementType *type, 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 (PunctuationType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle) |
virtual luPt | getSpaceAfter (BracketType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle) |
virtual luPt | getSpaceAfter (ComplexElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle) |
virtual luPt | getSpaceAfter (InnerElementType *type, const ContextStyle &context, ContextStyle::TextStyle tstyle) |
virtual QFont | getFont (const ContextStyle &context) |
virtual void | setUpPainter (const ContextStyle &context, QPainter &painter) |
virtual void | output () |
void | append (ElementType *) |
ElementType * | getPrev () const |
virtual void | saveMathML (SequenceElement *se, QDomDocument doc, QDomElement de) |
virtual bool | multiElement () const |
Static Public Member Functions | |
int | getEvilDestructionCount () |
Protected Member Functions | |
void | setStart (uint start) |
void | setEnd (uint end) |
luPt | thinSpaceIfNotScript (const ContextStyle &context, ContextStyle::TextStyle tstyle) |
luPt | mediumSpaceIfNotScript (const ContextStyle &context, ContextStyle::TextStyle tstyle) |
luPt | thickSpaceIfNotScript (const ContextStyle &context, ContextStyle::TextStyle tstyle) |
Detailed Description
Basis of all types.Types make up a hierarchy that describes the semantic of the sequence.
Definition at line 52 of file elementtype.h.
Member Function Documentation
|
Definition at line 60 of file elementtype.h. Referenced by TextElement::isInvisible(). |
|
Reimplemented in MultiElementType. Definition at line 93 of file elementtype.cc. References end(), BasicElement::getCharacter(), SequenceElement::getChild(), and start(). Referenced by TextElement::draw(). |
|
Definition at line 71 of file elementtype.h. Referenced by SequenceElement::draw(), SequenceElement::isFirstOfToken(), SequenceElement::moveWordLeft(), and text(). |
|
Definition at line 76 of file elementtype.h. Referenced by SequenceElement::draw(), SequenceElement::moveWordRight(), and text(). |
|
Reimplemented in MultiElementType. Definition at line 103 of file elementtype.cc. Referenced by SequenceElement::calcSizes(). |
|
Reimplemented in NumberType, and NameType. Definition at line 186 of file elementtype.cc. References ContextStyle::getDefaultFont(). Referenced by TextElement::getFont(). |
|
sets the painters pen to a appropriate value
Reimplemented in NumberType. Definition at line 191 of file elementtype.cc. References ContextStyle::getDefaultColor(). Referenced by TextElement::setUpPainter(). |
|
Adds a type at the end of the list.
Definition at line 196 of file elementtype.cc. References prev. |
The documentation for this class was generated from the following files: