formulaelement.cpp
316void FormulaElement::writeMathML( TQDomDocument& doc, TQDomNode& parent, bool oasisFormat ) const
virtual void writeMathML(TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
Same as above, just MathML.
Definition basicelement.cpp:177
void setTo(BasicElement *element, uint cursor, int mark=-1)
Sets the cursor to a new position.
Definition formulacursor.cpp:45
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
void elementRemoval(BasicElement *child)
Gets called just before the child is removed from the element tree.
Definition formulaelement.cpp:69
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 formulaelement.cpp:128
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
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
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 KCommand * input(Container *container, TQChar ch)
Parses the input.
Definition sequenceelement.cpp:1312
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 bool readAttributesFromDom(TQDomElement element)
Reads our attributes from the element.
Definition sequenceelement.cpp:1479
virtual BasicElement * getChild(FormulaCursor *, Direction=beforeCursor)
Returns the child at the cursor.
Definition sequenceelement.cpp:871
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 writeDom(TQDomElement element)
Appends our attributes to the dom element.
Definition sequenceelement.cpp:1466
virtual bool readContentFromDom(TQDomNode &node)
Reads our content from the node.
Definition sequenceelement.cpp:1492
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
