symbolelement.h
230 virtual void writeMathML( TQDomDocument& doc, TQDomNode& parent, bool oasisFormat = false ) const ;
Base for all font commands that act on the current selection.
Definition kformulacommand.h:490
virtual BasicElement * goToPos(FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
Sets the cursor and returns the element the point is in.
Definition symbolelement.cpp:136
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 symbolelement.cpp:197
virtual void moveLeft(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the left starting inside the element ‘from’.
Definition symbolelement.cpp:374
ElementIndexPtr getIndex(int position)
Returns the index at the position.
Definition symbolelement.cpp:693
virtual void moveUp(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving up starting inside the element ‘from’.
Definition symbolelement.cpp:454
virtual BasicElement * getChild(FormulaCursor *, Direction=beforeCursor)
Returns the child at the cursor.
Definition symbolelement.cpp:615
virtual void moveDown(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving down starting inside the element ‘from’.
Definition symbolelement.cpp:482
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition symbolelement.cpp:755
virtual void selectChild(FormulaCursor *cursor, BasicElement *child)
Sets the cursor to select the child.
Definition symbolelement.cpp:633
virtual void insert(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Inserts all new children at the cursor position.
Definition symbolelement.cpp:530
virtual void dispatchFontCommand(FontCommand *cmd)
Dispatch this FontCommand to all our TextElement children.
Definition symbolelement.cpp:350
virtual void normalize(FormulaCursor *, Direction)
Moves the cursor to a normal place where new elements might be inserted.
Definition symbolelement.cpp:602
virtual void writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition symbolelement.cpp:708
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 symbolelement.cpp:306
virtual bool readAttributesFromDom(TQDomElement element)
Reads our attributes from the element.
Definition symbolelement.cpp:736
virtual void moveRight(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the right starting inside the element ‘from’.
Definition symbolelement.cpp:414
virtual void remove(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Removes all selected children and returns them.
Definition symbolelement.cpp:570
virtual TQString getTagName() const
Returns the tag name of this element type.
Definition symbolelement.h:239
virtual void writeMathML(TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
Same as above, just MathML.
Definition symbolelement.cpp:855
