- ///
- string macroName() const;
- ///
- void insert(char, MathTextCodes t = LM_TC_MIN);
- /// can we enter the inset?
- bool openable(MathInset *, bool selection) const;
- /// can the setPos routine enter that inset?
- MathInset * positionable(MathAtom *, int x, int y) const;
+ /// moves cursor index one cell to the left
+ bool idxLeft();
+ /// moves cursor index one cell to the right
+ bool idxRight();
+ /// moves cursor to end of last cell of current line
+ bool idxLineLast();
+ /// moves cursor position one cell to the left
+ bool posLeft();
+ /// moves cursor position one cell to the right
+ bool posRight();
+ /// moves position somehow up or down
+ bool goUpDown(bool up);
+ /// moves position closest to (x, y) in given box
+ bool bruteFind(int x, int y, int xlow, int xhigh, int ylow, int yhigh);
+ /// moves position closest to (x, y) in current cell
+ void bruteFind2(int x, int y);
+ /// are we in a nucleus of a script inset?
+ bool inNucleus() const;
+
+ /// erase the selected part and re-sets the cursor
+ void eraseSelection();
+
+ /// the name of the macro we are currently inputting
+ std::string macroName() const;
+ /// where in the curent cell does the macro name start?
+ difference_type macroNamePos() const;
+ /// can we enter the inset?
+ bool openable(MathAtom const &, bool selection) const;