lib
OverlineElement Class Reference
#include <bracketelement.h>

Detailed Description
A line above the content.Definition at line 302 of file bracketelement.h.
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 &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style) |
virtual void | draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style, const LuPixelPoint &parentOrigin) |
virtual QString | toLatex () |
virtual QString | formulaString () |
virtual void | writeMathML (QDomDocument &doc, QDomNode &parent, bool oasisFormat=false) const |
Protected Member Functions | |
virtual QString | getTagName () const |
Member Function Documentation
bool OverlineElement::accept | ( | ElementVisitor * | ) | [virtual] |
Visit this element.
An implementation of the visitor pattern.
Implements BasicElement.
Definition at line 815 of file bracketelement.cc.
void OverlineElement::entered | ( | SequenceElement * | child | ) | [virtual] |
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 821 of file bracketelement.cc.
void OverlineElement::calcSizes | ( | const ContextStyle & | context, | |
ContextStyle::TextStyle | tstyle, | |||
ContextStyle::IndexStyle | istyle, | |||
StyleAttributes & | style | |||
) | [virtual] |
Calculates our width and height and our children's parentPosition.
Implements BasicElement.
Definition at line 827 of file bracketelement.cc.
void OverlineElement::draw | ( | QPainter & | painter, | |
const LuPixelRect & | r, | |||
const ContextStyle & | context, | |||
ContextStyle::TextStyle | tstyle, | |||
ContextStyle::IndexStyle | istyle, | |||
StyleAttributes & | style, | |||
const LuPixelPoint & | parentOrigin | |||
) | [virtual] |
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 848 of file bracketelement.cc.
QString OverlineElement::toLatex | ( | ) | [virtual] |
- Returns:
- the latex representation of the element and of the element's children
Reimplemented from BasicElement.
Definition at line 880 of file bracketelement.cc.
void OverlineElement::writeMathML | ( | QDomDocument & | doc, | |
QDomNode & | parent, | |||
bool | oasisFormat = false | |||
) | const [virtual] |
Same as above, just MathML.
It shouldn't be redefined but for exceptional cases, use the general writeMathML* API instead
Reimplemented from BasicElement.
Definition at line 890 of file bracketelement.cc.
virtual QString OverlineElement::getTagName | ( | ) | const [inline, protected, virtual] |
Returns the tag name of this element type.
Reimplemented from BasicElement.
Definition at line 361 of file bracketelement.h.
The documentation for this class was generated from the following files: