- bool cutSelection(BufferParams const & bp);
- ///
- bool isRightToLeft(BufferView *);
- ///
- void getSelection(int & scol, int & ecol,
- int & srow, int & erow) const;
- ///
- bool insertAsciiString(BufferView *, std::string const & buf, bool usePaste);
+ bool insertPlaintextString(BufferView &, docstring const & buf, bool usePaste);
+ /// are we operating on several cells?
+ bool tablemode(LCursor & cur) const;
+
+ /// return the "Manhattan distance" to nearest corner
+ int dist(BufferView &, idx_type cell, int x, int y) const;
+ /// return the cell nearest to x, y
+ idx_type getNearestCell(BufferView &, int x, int y) const;