lib
TextElement Class Reference
#include <textelement.h>
Inheritance diagram for TextElement:

Detailed Description
An element that represents one char.
Definition at line 37 of file textelement.h.
Public Member Functions | |
TextElement (QChar ch= ' ', bool beSymbol=false, BasicElement *parent=0) | |
TextElement (const TextElement &) | |
virtual TextElement * | clone () |
virtual bool | accept (ElementVisitor *visitor) |
virtual TokenType | getTokenType () const |
virtual bool | isInvisible () const |
virtual QChar | getCharacter () const |
virtual void | calcSizes (const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle) |
virtual void | draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, const LuPixelPoint &parentOrigin) |
virtual void | dispatchFontCommand (FontCommand *cmd) |
CharStyle | getCharStyle () const |
void | setCharStyle (CharStyle cs) |
CharFamily | getCharFamily () const |
void | setCharFamily (CharFamily cf) |
char | format () const |
bool | isSymbol () const |
virtual QString | toLatex () |
virtual QString | formulaString () |
Protected Member Functions | |
virtual QString | getTagName () const |
virtual void | writeDom (QDomElement element) |
virtual bool | readAttributesFromDom (QDomElement element) |
virtual bool | readContentFromDom (QDomNode &node) |
QChar | getRealCharacter (const ContextStyle &context) |
QFont | getFont (const ContextStyle &context) |
void | setUpPainter (const ContextStyle &context, QPainter &painter) |
const SymbolTable & | getSymbolTable () const |
Member Function Documentation
|
Visit this element. An implementation of the visitor pattern. Implements BasicElement. Definition at line 57 of file textelement.cc. |
|
Calculates our width and height and our children's parentPosition.
Implements BasicElement. Definition at line 111 of file textelement.cc. |
|
Dispatch this FontCommand to all our TextElement children.
Reimplemented from BasicElement. Definition at line 225 of file textelement.cc. |
|
Draws the whole element including its children. The `parentOrigin' is the point this element's parent starts. We can use our parentPosition to get our own origin then. Implements BasicElement. Definition at line 149 of file textelement.cc. |
|
Reimplemented from BasicElement. Definition at line 65 of file textelement.h. |
|
Definition at line 263 of file textelement.cc. |
|
Definition at line 242 of file textelement.cc. |
|
Reimplemented from BasicElement. Definition at line 130 of file textelement.h. |
|
Reimplemented from BasicElement. Definition at line 63 of file textelement.cc. |
|
Reimplemented from BasicElement. Definition at line 98 of file textelement.cc. |
|
Definition at line 113 of file textelement.h. |
|
Reads our attributes from the element. Returns false if it failed. Reimplemented from BasicElement. Definition at line 357 of file textelement.cc. |
|
Reads our content from the node. Sets the node to the next node that needs to be read. Returns false if it failed. Reimplemented from BasicElement. Definition at line 438 of file textelement.cc. |
|
Sets up the painter to be used for drawing.
Definition at line 309 of file textelement.cc. |
|
Reimplemented from BasicElement. Definition at line 443 of file textelement.cc. |
|
Appends our attributes to the dom element.
Reimplemented from BasicElement. Definition at line 328 of file textelement.cc. |
The documentation for this class was generated from the following files: