SingleContentElement Class Reference
The base of (all) elements that contain just one content element. More...
#include <bracketelement.h>
Inheritance diagram for SingleContentElement:


Public Member Functions | |
SingleContentElement (BasicElement *parent=0) | |
SingleContentElement (const SingleContentElement &) | |
virtual QChar | getCharacter () const |
virtual BasicElement * | goToPos (FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin) |
virtual void | dispatchFontCommand (FontCommand *cmd) |
virtual void | moveLeft (FormulaCursor *cursor, BasicElement *from) |
virtual void | moveRight (FormulaCursor *cursor, BasicElement *from) |
virtual void | moveUp (FormulaCursor *cursor, BasicElement *from) |
virtual void | moveDown (FormulaCursor *cursor, BasicElement *from) |
virtual void | remove (FormulaCursor *, QPtrList< BasicElement > &, Direction) |
virtual void | normalize (FormulaCursor *, Direction) |
virtual SequenceElement * | getMainChild () |
virtual void | selectChild (FormulaCursor *cursor, BasicElement *child) |
virtual void | writeMathML (QDomDocument &doc, QDomNode parent, bool oasisFormat=false) |
Protected Member Functions | |
virtual void | writeDom (QDomElement element) |
virtual bool | readContentFromDom (QDomNode &node) |
SequenceElement * | getContent () |
Detailed Description
The base of (all) elements that contain just one content element.(No indexes.)
Definition at line 39 of file bracketelement.h.
Member Function Documentation
|
Reimplemented from BasicElement. Definition at line 59 of file bracketelement.cc. References BasicElement::getCharacter(), and SequenceElement::isTextOnly(). |
|
Sets the cursor and returns the element the point is in. The handled flag shows whether the cursor has been set. This is needed because only the innermost matching element is allowed to set the cursor. Reimplemented from BasicElement. Reimplemented in BracketElement. Definition at line 70 of file bracketelement.cc. References SequenceElement::goToPos(), and BasicElement::goToPos(). |
|
Dispatch this FontCommand to all our TextElement children.
Reimplemented from BasicElement. Definition at line 87 of file bracketelement.cc. References SequenceElement::dispatchFontCommand(). |
|
Enters this element while moving to the left starting inside the element `from'. Searches for a cursor position inside this element or to the left of it. Reimplemented from BasicElement. Definition at line 92 of file bracketelement.cc. References SequenceElement::moveLeft(). |
|
Enters this element while moving to the right starting inside the element `from'. Searches for a cursor position inside this element or to the right of it. Reimplemented from BasicElement. Definition at line 108 of file bracketelement.cc. References SequenceElement::moveRight(). |
|
Enters this element while moving up starting inside the element `from'. Searches for a cursor position inside this element or above it. Reimplemented from BasicElement. Definition at line 124 of file bracketelement.cc. |
|
Enters this element while moving down starting inside the element `from'. Searches for a cursor position inside this element or below it. Reimplemented from BasicElement. Definition at line 129 of file bracketelement.cc. |
|
Removes all selected children and returns them. Places the cursor to where the children have been. We remove ourselve if we are requested to remove our content. Reimplemented from BasicElement. Definition at line 134 of file bracketelement.cc. References BasicElement::remove(), and BasicElement::selectChild(). |
|
Moves the cursor to a normal place where new elements might be inserted.
Reimplemented from BasicElement. Definition at line 146 of file bracketelement.cc. References SequenceElement::moveLeft(), and SequenceElement::moveRight(). |
|
Removes the child. If this was the main child this element might request its own removal. The cursor is the one that caused the removal. It has to be moved to the place any user expects the cursor after that particular element has been removed. Reimplemented from BasicElement. Definition at line 156 of file bracketelement.cc. |
|
Sets the cursor to select the child. The mark is placed before, the position behind it. Reimplemented from BasicElement. Definition at line 161 of file bracketelement.cc. References FormulaCursor::setTo(). |
|
Same as above, just MathML.
Reimplemented from BasicElement. Reimplemented in BracketElement, OverlineElement, and UnderlineElement. Definition at line 194 of file bracketelement.cc. References SequenceElement::writeMathML(). Referenced by UnderlineElement::writeMathML(), OverlineElement::writeMathML(), and BracketElement::writeMathML(). |
|
Appends our attributes to the dom element.
Reimplemented from BasicElement. Reimplemented in BracketElement. Definition at line 168 of file bracketelement.cc. References BasicElement::getElementDom(), and BasicElement::writeDom(). Referenced by BracketElement::writeDom(). |
|
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 179 of file bracketelement.cc. References BasicElement::buildChild(), BasicElement::getTagName(), and BasicElement::readContentFromDom(). |
The documentation for this class was generated from the following files: