OverlineElement Class Reference
A line above the content. More...
#include <bracketelement.h>
Inheritance diagram for OverlineElement:


Public Member Functions | |
OverlineElement (BasicElement *parent=0) | |
OverlineElement (const OverlineElement &) | |
virtual OverlineElement * | clone () |
virtual bool | accept (ElementVisitor *visitor) |
virtual void | entered (SequenceElement *child) |
virtual void | calcSizes (const ContextStyle &style, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle) |
virtual void | draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &style, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, const LuPixelPoint &parentOrigin) |
virtual QString | toLatex () |
virtual QString | formulaString () |
virtual void | writeMathML (QDomDocument &doc, QDomNode parent, bool oasisFormat=false) |
Protected Member Functions | |
virtual QString | getTagName () const |
Detailed Description
A line above the content.
Definition at line 257 of file bracketelement.h.
Member Function Documentation
|
Visit this element. An implementation of the visitor pattern. Implements BasicElement. Definition at line 488 of file bracketelement.cc. References ElementVisitor::visit(). |
|
The cursor has entered one of our child sequences. This is a good point to tell the user where he is. Reimplemented from BasicElement. Definition at line 494 of file bracketelement.cc. References BasicElement::formula(). |
|
Calculates our width and height and our children's parentPosition.
Implements BasicElement. Definition at line 500 of file bracketelement.cc. References SequenceElement::calcSizes(), ContextStyle::convertIndexStyleLower(), BasicElement::getBaseline(), BasicElement::getHeight(), ContextStyle::getThinSpace(), BasicElement::getWidth(), BasicElement::getY(), KoZoomHandler::ptToPixelY(), BasicElement::setX(), and BasicElement::setY(). |
|
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 518 of file bracketelement.cc. References ContextStyle::convertIndexStyleLower(), SequenceElement::draw(), ContextStyle::getDefaultColor(), ContextStyle::getLineWidth(), ContextStyle::getThinSpace(), BasicElement::getWidth(), KoZoomHandler::layoutUnitToPixelX(), KoZoomHandler::layoutUnitToPixelY(), and KoZoomHandler::ptToPixelY(). |
|
Reimplemented from BasicElement. Definition at line 548 of file bracketelement.cc. |
|
Same as above, just MathML.
Reimplemented from SingleContentElement. Definition at line 558 of file bracketelement.cc. References SingleContentElement::writeMathML(). |
|
Returns the tag name of this element type.
Reimplemented from BasicElement. Definition at line 312 of file bracketelement.h. |
The documentation for this class was generated from the following files: