- bool nextIsInset() const;
- ///
- bool prevIsInset() const;
- ///
- void merge(MathArray const & arr);
- ///
- MathInset * nextInset() const;
+ friend class Selection;
+
+
+private:
+ /// moves cursor index one cell to the left
+ bool idxLeft();
+ /// moves cursor index one cell to the right
+ bool idxRight();
+ /// moves cursor to beginning first cell of current line
+ bool idxLineFirst();
+ /// 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 into box
+ bool bruteFind(int xo, int yo, int xlow, int xhigh, int ylow, int yhigh);
+
+
+ /// grab grid marked by anchor and current cursor
+ MathGridInset grabSelection() const;
+ /// erase the selected part and re-sets the cursor
+ void eraseSelection();
+ /// guess what
+ MathGridInset grabAndEraseSelection();
+