formulaelement.h
173 virtual void writeMathML( TQDomDocument& doc, TQDomNode& parent, bool oasisFormat = false ) const ;
The interface the elements expect from its document.
Definition kformulacontainer.h:62
virtual void calcSizes(const ContextStyle &context, ContextStyle::TextStyle tstyle, ContextStyle::IndexStyle istyle, StyleAttributes &style)
Calculates our width and height and our children's parentPosition.
Definition formulaelement.cpp:119
BasicElement * goToPos(FormulaCursor *, const LuPixelPoint &point)
Returns the element the point is in.
Definition formulaelement.cpp:56
virtual bool readOnly(const FormulaCursor *) const
Definition formulaelement.h:65
void elementRemoval(BasicElement *child)
Gets called just before the child is removed from the element tree.
Definition formulaelement.cpp:69
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 formulaelement.cpp:173
void tell(const TQString &msg)
Tell the user something has happened.
Definition formulaelement.cpp:104
void cursorHasMoved(FormulaCursor *)
Gets called when a request has the side effect of moving the cursor.
Definition formulaelement.cpp:79
FormulaElement(FormulaDocument *container)
The container this FormulaElement belongs to must not be 0, except you really know what you are doing...
Definition formulaelement.cpp:34
virtual void changed()
Gets called whenever something changes and we need to recalc.
Definition formulaelement.cpp:74
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition formulaelement.cpp:271
virtual const FormulaElement * formula() const
Provide fast access to the rootElement for each child.
Definition formulaelement.h:75
void draw(TQPainter &painter, const LuPixelRect &r, ContextStyle &context)
Draws the whole thing.
Definition formulaelement.cpp:128
const SymbolTable & getSymbolTable() const
Definition formulaelement.cpp:184
virtual bool readAttributesFromDom(TQDomElement element)
Reads our attributes from the element.
Definition formulaelement.cpp:238
virtual void writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition formulaelement.cpp:225
virtual void writeMathML(TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
Same as above, just MathML.
Definition formulaelement.cpp:316
virtual KCommand * input(Container *container, TQKeyEvent *event)
Parses the input.
Definition formulaelement.cpp:202
TQDomElement emptyFormulaElement(TQDomDocument &doc)
For copy&paste we need to create an empty XML element.
Definition formulaelement.cpp:190
virtual bool readOnly(const BasicElement *) const
Ordinary formulas are not write protected.
Definition formulaelement.h:60
void removeFormula(FormulaCursor *)
Gets called when the formula wants to vanish.
Definition formulaelement.cpp:109
virtual TQString getTagName() const
Returns the tag name of this element type.
Definition formulaelement.h:192
virtual FormulaElement * formula()
Provide fast access to the rootElement for each child.
Definition formulaelement.h:70
