lib
SpaceElement Class Reference
#include <spaceelement.h>
Inheritance diagram for SpaceElement:

Detailed Description
A element that represents a space.
Definition at line 37 of file spaceelement.h.
Public Member Functions | |
SpaceElement (SpaceWidth space=THIN, bool tab=false, BasicElement *parent=0) | |
SpaceElement (const SpaceElement &) | |
virtual SpaceElement * | clone () |
virtual bool | accept (ElementVisitor *visitor) |
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 QString | toLatex () |
virtual void | writeMathML (QDomDocument &doc, QDomNode parent, bool oasisFormat=false) |
Protected Member Functions | |
virtual QString | getTagName () const |
virtual void | writeDom (QDomElement element) |
virtual bool | readAttributesFromDom (QDomElement element) |
virtual bool | readContentFromDom (QDomNode &node) |
Member Function Documentation
|
Visit this element. An implementation of the visitor pattern. Implements BasicElement. Definition at line 47 of file spaceelement.cc. |
|
Calculates our width and height and our children's parentPosition.
Implements BasicElement. Definition at line 53 of file spaceelement.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 76 of file spaceelement.cc. |
|
Reimplemented from BasicElement. Definition at line 60 of file spaceelement.h. |
|
Reimplemented from BasicElement. Definition at line 109 of file spaceelement.h. |
|
Reads our attributes from the element. Returns false if it failed. Reimplemented from BasicElement. Definition at line 130 of file spaceelement.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 161 of file spaceelement.cc. |
|
Reimplemented from BasicElement. Definition at line 215 of file spaceelement.cc. |
|
Appends our attributes to the dom element.
Reimplemented from BasicElement. Definition at line 105 of file spaceelement.cc. |
|
Same as above, just MathML.
Reimplemented from BasicElement. Definition at line 166 of file spaceelement.cc. |
The documentation for this class was generated from the following files: