fractionelement.h
Base for all font commands that act on the current selection.
Definition kformulacommand.h:490
virtual void moveRight(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the right starting inside the element ‘from’.
Definition fractionelement.cpp:238
virtual void remove(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Removes all selected children and returns them.
Definition fractionelement.cpp:343
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 fractionelement.cpp:126
virtual void moveUp(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving up starting inside the element ‘from’.
Definition fractionelement.cpp:268
virtual int readContentFromMathMLDom(TQDomNode &node)
Reads our content from the MathML node.
Definition fractionelement.cpp:539
virtual bool readAttributesFromDom(TQDomElement element)
Reads our attributes from the element.
Definition fractionelement.cpp:430
virtual void writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition fractionelement.cpp:410
virtual void insert(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Reinserts the denominator if it has been removed.
Definition fractionelement.cpp:314
virtual bool isSenseless()
Returns wether the element has no more useful children (except its main child) and should therefore b...
Definition fractionelement.cpp:368
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition fractionelement.cpp:513
virtual void moveLeft(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the left starting inside the element ‘from’.
Definition fractionelement.cpp:208
virtual BasicElement * goToPos(FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
Sets the cursor and returns the element the point is in.
Definition fractionelement.cpp:83
virtual void dispatchFontCommand(FontCommand *cmd)
Dispatch this FontCommand to all our TextElement children.
Definition fractionelement.cpp:197
virtual bool readAttributesFromMathMLDom(const TQDomElement &element)
Reads our attributes from the MathML element.
Definition fractionelement.cpp:447
virtual void moveDown(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving down starting inside the element ‘from’.
Definition fractionelement.cpp:292
virtual void entered(SequenceElement *child)
The cursor has entered one of our child sequences.
Definition fractionelement.cpp:72
virtual void draw(TQPainter &painter, const LuPixelRect &r, const ContextStyle &cstyle, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style, const LuPixelPoint &parentOrigin)
Draws the whole element including its children.
Definition fractionelement.cpp:162
virtual TQString getTagName() const
Returns the tag name of this element type.
Definition fractionelement.h:198
virtual void selectChild(FormulaCursor *cursor, BasicElement *child)
Sets the cursor to select the child.
Definition fractionelement.cpp:396
