X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_nestinset.h;h=7bb9f08f22e95e9e42625d971e7f2316dfa12a31;hb=a8a1f10e765512b40f6942e5594363fe16542c1c;hp=471e0bb2829c3d02a9d39a8a904c332bee26002b;hpb=67f9c9fdae42211aa3ff8d0c6f62485bd721d8eb;p=lyx.git diff --git a/src/mathed/math_nestinset.h b/src/mathed/math_nestinset.h index 471e0bb282..7bb9f08f22 100644 --- a/src/mathed/math_nestinset.h +++ b/src/mathed/math_nestinset.h @@ -43,7 +43,7 @@ public: /// void edit(LCursor & cur, bool left); /// - void edit(LCursor & cur, int x, int y); + InsetBase * editXY(LCursor & cur, int x, int y); /// order of movement through the cells when pressing the left key bool idxLeft(LCursor &) const; @@ -60,11 +60,6 @@ public: /// target pos when we enter the inset from the right by pressing "Left" bool idxLast(LCursor &) const; - /// where should we go if we press home? - bool idxHome(LCursor &) const; - /// where should we go if we press end? - bool idxEnd(LCursor &) const; - /// number of cells currently governed by us idx_type nargs() const; /// access to the lock @@ -72,7 +67,7 @@ public: /// access to the lock void lock(bool); /// get notification when the cursor leaves this inset - void notifyCursorLeaves(idx_type); + void notifyCursorLeaves(LCursor & cur); /// direct access to the cell MathArray & cell(idx_type); @@ -98,24 +93,35 @@ public: void write(WriteStream & os) const; /// writes [, name(), and args in [] void normalize(NormalStream & os) const; + /// + int latex(Buffer const &, std::ostream & os, + OutputParams const & runparams) const; protected: /// - DispatchResult priv_dispatch(LCursor & cur, FuncRequest const & cmd); + void priv_dispatch(LCursor & cur, FuncRequest & cmd); + /// do we want to handle this event? + bool getStatus(LCursor & cur, FuncRequest const & cmd, + FuncStatus & status) const; /// void handleFont(LCursor & cur, std::string const & arg, std::string const & font); /// void handleFont2(LCursor & cur, std::string const & arg); + /// + bool interpret(LCursor & cur, char c); + /// + bool script(LCursor & cur, bool); + private: /// lfun handler - DispatchResult lfunMousePress(LCursor &, FuncRequest const &); + void lfunMousePress(LCursor &, FuncRequest &); /// - DispatchResult lfunMouseRelease(LCursor &, FuncRequest const &); + void lfunMouseRelease(LCursor &, FuncRequest &); /// - DispatchResult lfunMouseMotion(LCursor &, FuncRequest const &); + void lfunMouseMotion(LCursor &, FuncRequest &); protected: /// we store the cells in a vector