X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_cursor.h;h=96d0348085baebb5a80f0bfa5afc51de198e5ad9;hb=d359dd8fca52c4f0100f7cf4bf636113c5c4e49f;hp=f6bad5629b27696c6a74b025197a2e33550e2d44;hpb=f1c24d100985c6df2eb5ec390017b69c78fe49c7;p=lyx.git diff --git a/src/mathed/math_cursor.h b/src/mathed/math_cursor.h index f6bad5629b..96d0348085 100644 --- a/src/mathed/math_cursor.h +++ b/src/mathed/math_cursor.h @@ -60,6 +60,8 @@ public: /// explicit MathCursor(InsetFormulaBase *, bool left); /// + ~MathCursor(); + /// void insert(MathAtom const &); /// void insert(MathArray const &); @@ -115,7 +117,7 @@ public: /// go up to the hull inset void popToEnclosingHull(); /// - InsetFormulaBase * formula(); + InsetFormulaBase * formula() const; /// current offset in the current cell pos_type pos() const; /// current cell @@ -238,6 +240,8 @@ public: /// how deep are we nested? unsigned depth() const; + /// local dispatcher + int dispatch(string const & cmd); /// describe the situation string info() const; /// dump selection information for debugging @@ -247,7 +251,9 @@ public: /// moves on void setSelection(cursor_type const & where, size_type n); /// - void insert(char); + void insert(char c); + /// + void insert(string const & str); /// lock/unlock inset void insetToggle();