symbolelement.cpp
virtual FormulaElement * formula()
Provide fast access to the rootElement for each child.
Definition basicelement.cpp:70
virtual void remove(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Removes all selected children and returns them.
Definition basicelement.h:282
bool buildChild(SequenceElement *child, TQDomNode node, TQString name)
Returns if the SequenceElement could be constructed from the nodes first child.
Definition basicelement.cpp:241
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition basicelement.cpp:232
virtual void moveUp(FormulaCursor *, BasicElement *)
Enters this element while moving up starting inside the element ‘from’.
Definition basicelement.h:213
virtual void selectChild(FormulaCursor *, BasicElement *)
Sets the cursor to select the child.
Definition basicelement.h:308
TQDomElement getElementDom(TQDomDocument &doc)
Definition basicelement.cpp:169
virtual bool readAttributesFromDom(TQDomElement element)
Reads our attributes from the element.
Definition basicelement.cpp:222
virtual BasicElement * goToPos(FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
Sets the cursor and returns the element the point is in.
Definition basicelement.cpp:82
virtual void writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition basicelement.cpp:214
virtual void moveRight(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the right starting inside the element ‘from’.
Definition basicelement.cpp:145
virtual void moveLeft(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the left starting inside the element ‘from’.
Definition basicelement.cpp:134
virtual void moveDown(FormulaCursor *, BasicElement *)
Enters this element while moving down starting inside the element ‘from’.
Definition basicelement.h:220
virtual void writeMathML(TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
Same as above, just MathML.
Definition basicelement.cpp:177
TextStyle convertTextStyleIndex(TextStyle tstyle) const
Font-conversions a la TeX.
Definition contextstyle.cpp:340
luPt getAdjustedSize(TextStyle tstyle, double factor) const
Calculates the font size corresponding to the given TextStyle.
Definition contextstyle.cpp:222
IndexStyle convertIndexStyleLower(IndexStyle) const
Index-style-conversions a la TeX.
Definition contextstyle.h:237
IndexStyle convertIndexStyleUpper(IndexStyle istyle) const
Index-style-conversions a la TeX.
Definition contextstyle.h:224
Base for all font commands that act on the current selection.
Definition kformulacommand.h:490
void setTo(BasicElement *element, uint cursor, int mark=-1)
Sets the cursor to a new position.
Definition formulacursor.cpp:45
void elementRemoval(BasicElement *child)
Gets called just before the child is removed from the element tree.
Definition formulaelement.cpp:69
virtual void changed()
Gets called whenever something changes and we need to recalc.
Definition formulaelement.cpp:74
int ptToPixelX(double pt) const
Basic pt to pixel and pixel to pt conversions, valid at any zoom level, as well as at the Layout Unit...
Definition KoTextZoomHandler.h:67
int layoutUnitToPixelX(int lupix) const
The "layout unit pixel" -> "[zoomed] view pixel" conversions.
Definition KoTextZoomHandler.cpp:65
virtual KCommand * buildCommand(Container *, Request *)
This is called by the container to get a command depending on the current cursor position (this is ho...
Definition sequenceelement.cpp:940
virtual void moveRight(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the right starting inside the element ‘from’.
Definition sequenceelement.cpp:503
virtual void dispatchFontCommand(FontCommand *cmd)
Dispatch this FontCommand to all our TextElement children.
Definition sequenceelement.cpp:309
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 sequenceelement.cpp:179
virtual void moveLeft(FormulaCursor *cursor, BasicElement *from)
Enters this element while moving to the left starting inside the element ‘from’.
Definition sequenceelement.cpp:450
virtual BasicElement * goToPos(FormulaCursor *, bool &handled, const LuPixelPoint &point, const LuPixelPoint &parentOrigin)
Sets the cursor and returns the element the point is in.
Definition sequenceelement.cpp:116
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 sequenceelement.cpp:253
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 void writeMathML(TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
Same as above, just MathML.
Definition symbolelement.cpp:855
