/// draw background if locked
void draw(PainterInfo & pi, int x, int y) const;
/// draw selection background
- void drawSelection(PainterInfo & pi,
- idx_type idx1, pos_type pos1, idx_type idx2, pos_type pos2) const;
+ void drawSelection(PainterInfo & pi, int x, int y) const;
/// appends itself with macro arguments substituted
void substitute(MathMacro const & macro);
/// identifies NestInsets
/// get cursor position
void getCursorPos(CursorSlice const & cur, int & x, int & y) const;
///
- void edit(LCursor & cur, int, int);
+ void edit(LCursor & cur, bool left);
+ ///
+ void edit(LCursor & cur, int x, int y);
/// order of movement through the cells when pressing the left key
bool idxLeft(LCursor &) const;
void write(WriteStream & os) const;
/// writes [, name(), and args in []
void normalize(NormalStream & os) const;
+
protected:
///
DispatchResult priv_dispatch(LCursor & cur, FuncRequest const & cmd);
///
void handleFont2(LCursor & cur, std::string const & arg);
+
+private:
+ /// lfun handler
+ DispatchResult lfunMousePress(LCursor &, FuncRequest const &);
+ ///
+ DispatchResult lfunMouseRelease(LCursor &, FuncRequest const &);
+ ///
+ DispatchResult lfunMouseMotion(LCursor &, FuncRequest const &);
+
+protected:
/// we store the cells in a vector
typedef std::vector<MathArray> cells_type;
/// thusly: