formulacursor.h
A black box that is supposed to contain everything which is needed to describe a cursor.
Definition formulacursor.h:315
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
IndexElement * getActiveIndexElement()
Returns the IndexElement the cursor is on or 0 if there is non.
Definition formulacursor.cpp:493
const LuPixelPoint & getCursorPoint() const
Definition formulacursor.h:356
NameSequence * getActiveNameSequence()
Definition formulacursor.cpp:546
SequenceElement * normal()
Returns the sequence the cursor is in if we are normal.
Definition formulacursor.cpp:736
void normalize(Direction direction=beforeCursor)
Moves the cursor to a normal position.
Definition formulacursor.cpp:286
void insert(BasicElement *, Direction=beforeCursor)
Inserts the child at the current position.
Definition formulacursor.cpp:297
SymbolElement * getActiveSymbolElement()
Returns the SymbolElement the cursor is on or 0 if there is non.
Definition formulacursor.cpp:529
void selectActiveElement()
Selects the element the cursor points to (stands after) if there is such an element and if there is n...
Definition formulacursor.cpp:465
void replaceSelectionWith(BasicElement *, Direction=beforeCursor)
Replaces the current selection with the supplied element.
Definition formulacursor.cpp:346
void setCursorData(CursorData *data)
Sets the cursor to where the CursorData points to.
Definition formulacursor.cpp:721
CursorData * getCursorData()
Creates a new CursorData object that describes the cursor.
Definition formulacursor.cpp:696
RootElement * getActiveRootElement()
Returns the RootElement the cursor is on or 0 if there is non.
Definition formulacursor.cpp:511
BasicElement * replaceByMainChildContent(Direction=beforeCursor)
Replaces the element the cursor points to with its main child's content.
Definition formulacursor.cpp:383
BasicElement * removeEnclosingElement(Direction=beforeCursor)
Trys to find the element we are the main child of and replace it with our content.
Definition formulacursor.cpp:412
void calcCursorSize(const ContextStyle &context, bool smallCursor)
Calculates the size of the cursor.
Definition formulacursor.cpp:72
void goInsideElement(BasicElement *element)
Moves the cursor inside the element.
Definition formulacursor.cpp:274
void elementWillVanish(BasicElement *element)
The element is going to leave the formula with and all its children.
Definition formulacursor.cpp:587
void setTo(BasicElement *element, uint cursor, int mark=-1)
Sets the cursor to a new position.
Definition formulacursor.cpp:45
bool buildElementsFromDom(TQDomElement root, TQPtrList< BasicElement > &list)
Inserts the elements that could be read from the dom into the list.
Definition formulacursor.cpp:662
bool elementIsSenseless()
Returns wether the element the cursor points to should be replaced.
Definition formulacursor.cpp:430
bool hasChanged() const
Tells whether the cursor has changed since last cleaning.
Definition formulacursor.h:74
MatrixElement * getActiveMatrixElement()
Definition formulacursor.cpp:568
TextElement * getActiveTextElement()
Definition formulacursor.cpp:562
void remove(TQPtrList< BasicElement > &, Direction=beforeCursor)
Removes the current selected children and returns them.
Definition formulacursor.cpp:318
void draw(TQPainter &, const ContextStyle &context, StyleAttributes &style, bool smallCursor, bool activeCursor)
Draws the cursor at its current position.
Definition formulacursor.cpp:82
void formulaLoaded(FormulaElement *rootElement)
A new formula has been loaded.
Definition formulacursor.cpp:611
void copy(TQDomDocument &doc)
Stores the currently selected elements inside a dom.
Definition formulacursor.cpp:639
