basicelement.h
380 virtual void writeMathML( TQDomDocument& doc, TQDomNode& parent, bool oasisFormat = false ) const ;
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 readAttributesFromMathMLDom(const TQDomElement &element)
Reads our attributes from the MathML element.
Definition basicelement.cpp:260
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition basicelement.cpp:232
virtual void entered(SequenceElement *)
The cursor has entered one of our child sequences.
Definition basicelement.cpp:123
virtual void moveHome(FormulaCursor *)
Enters this element while moving to the left starting inside the element `from'.
Definition basicelement.h:226
virtual int readContentFromMathMLDom(TQDomNode &node)
Reads our content from the MathML node.
Definition basicelement.cpp:270
virtual BasicElement * getChild(FormulaCursor *, Direction=beforeCursor)
Returns the child at the cursor.
Definition basicelement.h:301
int buildFromMathMLDom(TQDomElement element)
Set this element attribute, build children and call their builFromMathMLDom.
Definition basicelement.cpp:198
virtual bool readOnly(const BasicElement *child) const
Definition basicelement.cpp:64
virtual TQString getTagName() const
Returns the tag name of this element type.
Definition basicelement.h:419
virtual void selectChild(FormulaCursor *, BasicElement *)
Sets the cursor to select the child.
Definition basicelement.h:308
virtual void goInside(FormulaCursor *cursor)
Sets the cursor inside this element to its start position.
Definition basicelement.cpp:114
bool buildFromDom(TQDomElement element)
Set this element attribute, build children and call their buildFromDom.
Definition basicelement.cpp:185
virtual void calcSizes(const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)=0
Calculates our width and height and our children's parentPosition.
virtual void registerTab(BasicElement *)
Callback for the tabs among our children.
Definition basicelement.h:321
virtual const FormulaElement * formula() const
Provide fast access to the rootElement for each child.
Definition basicelement.h:117
virtual void normalize(FormulaCursor *, Direction)
Moves the cursor to a normal place where new elements might be inserted.
Definition basicelement.cpp:155
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
double getSize(const TQString &str, SizeType *st)
Utility function that sets the size type and returns the size value from a MathML attribute string wi...
Definition basicelement.cpp:290
virtual bool isSenseless()
Returns wether the element has no more useful children (except its main child) and should therefore b...
Definition basicelement.h:296
virtual void dispatchFontCommand(FontCommand *)
Draws the whole element including its children.
Definition basicelement.h:184
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 basicelement.h:332
virtual void writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition basicelement.cpp:214
virtual void insert(FormulaCursor *, TQPtrList< BasicElement > &, Direction)
Inserts all new children at the cursor position.
Definition basicelement.h:276
virtual void childWillVanish(FormulaCursor *, BasicElement *)
Moves the cursor away from the given child.
Definition basicelement.h:315
virtual void moveEnd(FormulaCursor *)
Moves the cursor to the last position in this sequence.
Definition basicelement.h:232
virtual void writeMathML(TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
Same as above, just MathML.
Definition basicelement.cpp:177
Base for all font commands that act on the current selection.
Definition kformulacommand.h:490
virtual FormulaElement * formula()
Provide fast access to the rootElement for each child.
Definition formulaelement.h:70
