#include <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 TQString | toLatex () |
| virtual TQString | formulaString () |
| virtual void | writeMathML (TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const |
| Public Member Functions inherited from SingleContentElement | |
| SingleContentElement (BasicElement *parent=0) | |
| SingleContentElement (const SingleContentElement &) | |
| virtual TQChar | getCharacter () const |
| virtual BasicElement * | goToPos (FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin) |
| virtual void | dispatchFontCommand (FontCommand *cmd) |
| virtual void | remove (FormulaCursor *, TQPtrList< BasicElement > &, Direction) |
| virtual void | normalize (FormulaCursor *, Direction) |
| virtual SequenceElement * | getMainChild () |
| virtual void | selectChild (FormulaCursor *cursor, BasicElement *child) |
| Public Member Functions inherited from BasicElement | |
| BasicElement (BasicElement *parent=0) | |
| BasicElement (const BasicElement &) | |
| virtual bool | readOnly (const BasicElement *child) const |
| virtual FormulaElement * | formula () |
| virtual const FormulaElement * | formula () const |
| virtual TokenType | getTokenType () const |
| virtual bool | isInvisible () const |
| LuPixelPoint | widgetPos () |
| virtual void | moveHome (FormulaCursor *) |
| virtual void | moveEnd (FormulaCursor *) |
| virtual void | goInside (FormulaCursor *cursor) |
| virtual void | insert (FormulaCursor *, TQPtrList< BasicElement > &, Direction) |
| virtual bool | isSenseless () |
| virtual BasicElement * | getChild (FormulaCursor *, Direction=beforeCursor) |
| virtual void | childWillVanish (FormulaCursor *, BasicElement *) |
| virtual void | registerTab (BasicElement *) |
| virtual KCommand * | buildCommand (Container *, Request *) |
| virtual KCommand * | input (Container *, TQKeyEvent *) |
| const BasicElement * | getParent () const |
| BasicElement * | getParent () |
| void | setParent (BasicElement *p) |
| luPixel | getX () const |
| luPixel | getY () const |
| void | setX (luPixel x) |
| void | setY (luPixel y) |
| luPixel | getWidth () const |
| luPixel | getHeight () const |
| void | setWidth (luPixel width) |
| void | setHeight (luPixel height) |
| luPixel | getBaseline () const |
| void | setBaseline (luPixel line) |
| luPixel | axis (const ContextStyle &style, ContextStyle::TextStyle tstyle, double factor) const |
| TQDomElement | getElementDom (TQDomDocument &doc) |
| bool | buildFromDom (TQDomElement element) |
| int | buildFromMathMLDom (TQDomElement element) |
| ElementType * | getElementType () const |
| virtual void | setElementType (ElementType *t) |
| virtual void | setStyle (StyleElement *) |
| virtual TQString | getElementName () const |
Protected Member Functions | |
| virtual TQString | getTagName () const |
| Protected Member Functions inherited from SingleContentElement | |
| virtual void | writeDom (TQDomElement element) |
| virtual void | writeMathMLContent (TQDomDocument &doc, TQDomElement &element, bool oasisFormat) const |
| virtual bool | readContentFromDom (TQDomNode &node) |
| virtual int | readContentFromMathMLDom (TQDomNode &node) |
| SequenceElement * | getContent () |
| Protected Member Functions inherited from BasicElement | |
| virtual void | writeMathMLAttributes (TQDomElement &) const |
| virtual bool | readAttributesFromDom (TQDomElement element) |
| bool | buildChild (SequenceElement *child, TQDomNode node, TQString name) |
| virtual bool | readAttributesFromMathMLDom (const TQDomElement &element) |
| double | getSize (const TQString &str, SizeType *st) |
| SizeType | getSpace (const TQString &str) |
Additional Inherited Members | |
| Static Public Member Functions inherited from BasicElement | |
| static int | getEvilDestructionCount () |
Detailed Description
A line above the content.
Definition at line 302 of file bracketelement.h.
Constructor & Destructor Documentation
◆ OverlineElement() [1/2]
| OverlineElement::OverlineElement | ( | BasicElement * | parent = 0 | ) |
Definition at line 800 of file bracketelement.cpp.
◆ ~OverlineElement()
| OverlineElement::~OverlineElement | ( | ) |
Definition at line 805 of file bracketelement.cpp.
◆ OverlineElement() [2/2]
| OverlineElement::OverlineElement | ( | const OverlineElement & | other | ) |
Definition at line 809 of file bracketelement.cpp.
Member Function Documentation
◆ accept()
|
virtual |
Visit this element.
An implementation of the visitor pattern.
Implements BasicElement.
Definition at line 815 of file bracketelement.cpp.
◆ calcSizes()
|
virtual |
Calculates our width and height and our children's parentPosition.
Implements BasicElement.
Definition at line 827 of file bracketelement.cpp.
◆ clone()
|
inlinevirtual |
Implements BasicElement.
Definition at line 311 of file bracketelement.h.
◆ entered()
|
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.cpp.
◆ formulaString()
|
virtual |
Reimplemented from BasicElement.
Definition at line 885 of file bracketelement.cpp.
◆ getTagName()
|
inlineprotectedvirtual |
Returns the tag name of this element type.
Reimplemented from BasicElement.
Definition at line 361 of file bracketelement.h.
◆ toLatex()
|
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. */ virtual void draw( TQPainter& painter, const LuPixelRect& r, const ContextStyle& context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes& style, const LuPixelPoint& parentOrigin );
/**
- Returns
- the latex representation of the element and of the element's children
Reimplemented from BasicElement.
Definition at line 880 of file bracketelement.cpp.
◆ writeMathML()
|
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.cpp.
The documentation for this class was generated from the following files:
