indexelement.h
Base for all font commands that act on the current selection.
Definition kformulacommand.h:490
virtual void moveDown(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving down starting inside the element ‘from’.
Definition indexelement.cpp:845
virtual bool isSenseless()
Moves the cursor away from the given child.
Definition indexelement.cpp:1038
virtual int readContentFromMathMLDom(TQDomNode &node)
Reads our content from the MathML node.
Definition indexelement.cpp:1411
virtual void normalize(FormulaCursor *, Direction)
Moves the cursor to a normal place where new elements might be inserted.
Definition indexelement.cpp:1023
virtual void insert(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Inserts all new children at the cursor position.
Definition indexelement.cpp:914
virtual void draw(TQPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style, const LuPixelPoint &parentOrigin)
Draws the whole element including its children.
Definition indexelement.cpp:549
virtual void remove(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Removes all selected children and returns them.
Definition indexelement.cpp:967
virtual void selectChild(FormulaCursor *cursor, BasicElement *child)
Sets the cursor to select the child.
Definition indexelement.cpp:1081
ElementIndexPtr getIndex(int position)
Returns the index at the position.
Definition indexelement.cpp:1562
virtual void calcSizes(const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)
Calculates our width and height and our children's parentPosition.
Definition indexelement.cpp:346
virtual TQString getTagName() const
Returns the tag name of this element type.
Definition indexelement.h:276
virtual bool readAttributesFromMathMLDom(const TQDomElement &element)
Reads our attributes from the MathML element.
Definition indexelement.cpp:1348
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition indexelement.cpp:1289
virtual void writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition indexelement.cpp:1230
virtual void dispatchFontCommand(FontCommand *cmd)
Dispatch this FontCommand to all our TextElement children.
Definition indexelement.cpp:593
virtual void moveLeft(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the left starting inside the element ‘from’.
Definition indexelement.cpp:656
virtual void entered(SequenceElement *child)
The cursor has entered one of our child sequences.
Definition indexelement.cpp:215
virtual void moveRight(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the right starting inside the element ‘from’.
Definition indexelement.cpp:727
virtual BasicElement * goToPos(FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
Sets the cursor and returns the element the point is in.
Definition indexelement.cpp:229
virtual void moveUp(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving up starting inside the element ‘from’.
Definition indexelement.cpp:798
virtual BasicElement * getChild(FormulaCursor *, Direction=beforeCursor)
Returns the child at the cursor.
Definition indexelement.cpp:1048
virtual bool readAttributesFromDom(TQDomElement element)
Reads our attributes from the element.
Definition indexelement.cpp:1276
