kformulacontainer.cpp
278 emit formulaChanged( context.layoutUnitPtToPt( context.pixelXToPt( rootElement()->getWidth() ) ),
int buildFromMathMLDom(TQDomElement element)
Set this element attribute, build children and call their builFromMathMLDom.
Definition basicelement.cpp:198
bool buildFromDom(TQDomElement element)
Set this element attribute, build children and call their buildFromDom.
Definition basicelement.cpp:185
bool loadMathML(const TQDomDocument &doc, bool oasisFormat=false)
Load function.
Definition kformulacontainer.cpp:537
void setFontSize(int pointSize, bool forPrint=false)
Sets the base font size of this formula.
Definition kformulacontainer.cpp:471
void registerFormula(int pos=-1)
Register and unregister this formula with its document.
Definition kformulacontainer.cpp:208
void leaveFormula(Container *formula, FormulaCursor *cursor, int cmd)
The cursor wants to leave this formula.
void initialize()
Needs to be called before anything else can be done with a newly created formula! This is required to...
Definition kformulacontainer.cpp:127
void cursorMoved(FormulaCursor *cursor)
The cursor has been moved but the formula hasn't been changed.
void baseSizeChanged(int size, bool owned)
The base size changed.
Definition kformulacontainer.cpp:219
void cursorHasMoved(FormulaCursor *)
Gets called when a request has the side effect of moving the cursor.
Definition kformulacontainer.cpp:172
void formulaChanged(int width, int height)
The formula has changed and needs to be redrawn.
bool load(const TQDomElement &fe)
Loads a formula from the document.
Definition kformulacontainer.cpp:503
void setActiveCursor(FormulaCursor *cursor)
Sets the cursor that is to be used for any editing.
Definition kformulacontainer.cpp:245
void moveOutLeft(FormulaCursor *)
Inside the formula occurred an event that must be handled outside.
Definition kformulacontainer.cpp:177
void updateMatrixActions()
If the cursor is in a matrix, the matrix actions will be enabled, otherwise disabled.
Definition kformulacontainer.cpp:484
void changed()
Gets called when ever something changes and we need to recalc.
Definition kformulacontainer.cpp:167
void formulaLoaded(FormulaElement *)
Tells the cursors that we have just loaded a new formula.
void elementWillVanish(BasicElement *element)
The element is going to leave the formula with and all its children.
void draw(TQPainter &painter, const TQRect &r, const TQColorGroup &cg, bool edit=false)
Draws the whole thing.
Definition kformulacontainer.cpp:295
void elementRemoval(BasicElement *child)
Gets called just before the child is removed from the element tree.
Definition kformulacontainer.cpp:158
void saveMathML(TQTextStream &stream, bool oasisFormat=false)
Save formula as MathML.
Definition kformulacontainer.cpp:527
void setZoomAndResolution(int zoom, int dpiX, int dpiY)
Change the zoom factor to z (e.g.
Definition contextstyle.cpp:125
virtual void unregisterFormula(Container *)
Removes a formula from this document.
Definition kformuladocument.cpp:250
ContextStyle & getContextStyle(bool edit=false)
Definition kformuladocument.cpp:293
TQDomDocument createMathMLDomDocument()
Create a MathML Dom Document, deprecates KFO Dom Document for internal layout TODO: Shouldn't this go...
Definition kformuladocument.cpp:206
const SymbolTable & getSymbolTable() const
Definition kformuladocument.cpp:288
virtual void registerFormula(Container *, int pos=-1)
Registers a new formula to be part of this document.
Definition kformuladocument.cpp:237
bool buildElementsFromMathMLDom(TQDomElement root, TQPtrList< BasicElement > &list)
Inserts the elements that could be read from the MathML dom into the list.
Definition formulacursor.cpp:679
void copy(TQDomDocument &doc)
Stores the currently selected elements inside a dom.
Definition formulacursor.cpp:639
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
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 void writeMathML(TQDomDocument &doc, TQDomNode &parent, bool oasisFormat=false) const
Same as above, just MathML.
Definition formulaelement.cpp:316
void addElement(BasicElement *element)
Collects all elements that are to be added.
Definition kformulacommand.h:175
Removes the current selection and adds any new elements afterwards.
Definition kformulacommand.h:221
The command history stores a (user) configurable amount of Commands.
Definition KoCommandHistory.h:59
void addCommand(KCommand *command, bool execute=true)
Adds a command to the history.
Definition KoCommandHistory.cpp:170
int layoutUnitToPixelX(int lupix) const
The "layout unit pixel" -> "[zoomed] view pixel" conversions.
Definition KoTextZoomHandler.cpp:65
int pixelToLayoutUnitX(int x) const
The "[zoomed] view pixel" -> "layout unit pixel" conversions.
Definition KoTextZoomHandler.cpp:78
