X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_cursor.h;h=90519bec17aa0cd1327c11cf083eac80e7adf45b;hb=aea21e8cacad73e0d5df58637994b87b3eabc30e;hp=389ce3dc201f33e6b348c10e8d6f71689434c6fd;hpb=ba5f02ca07e7a1a9b3aa3306a0ca73ef22a6c57f;p=lyx.git diff --git a/src/mathed/math_cursor.h b/src/mathed/math_cursor.h index 389ce3dc20..90519bec17 100644 --- a/src/mathed/math_cursor.h +++ b/src/mathed/math_cursor.h @@ -65,10 +65,6 @@ public: /// explicit MathCursor(InsetFormulaBase *); /// - ~MathCursor(); - /// - void insert(char, MathTextCodes t = LM_TC_MIN); - /// void insert(MathInset *); /// void insert(MathArray const &); @@ -140,8 +136,6 @@ public: bool toggleLimits(); /// // Macro mode methods - void macroModeOpen(); - /// void macroModeClose(); /// bool inMacroMode() const; @@ -168,8 +162,6 @@ public: /// void handleFont(MathTextCodes t); /// - void handleAccent(string const & name); - /// void handleDelim(latexkeys const * l, latexkeys const * r); /// void handleNest(MathInset * p); @@ -217,8 +209,6 @@ public: void getSelection(MathCursorPos &, MathCursorPos &) const; /// returns the normalized anchor of the selection MathCursorPos normalAnchor() const; - /// returns the normalized anchor of the selection - bool openable(MathInset *, bool selection, bool useupdown) const; /// path of positions the cursor had to go if it were leving each inset std::vector Cursor_; @@ -254,8 +244,16 @@ public: MathSpaceInset * prevSpaceInset() const; private: /// - int & pos(); + string macroName() const; /// + void insert(char, MathTextCodes t = LM_TC_MIN); + /// can we enter the inset? + bool openable(MathInset *, bool selection) const; + /// can the setPos routine enter that inset? + bool positionable(MathInset *, bool selection) const; + /// write access to cursor cell position + int & pos(); + /// write access to cursor cell index int & idx(); /// x-offset of current cell relative to par xo int cellXOffset() const; @@ -272,8 +270,6 @@ private: InsetFormulaBase * const formula_; /// MathTextCodes lastcode_; - /// - MathFuncInset * imacro_; // Selection stuff /// do we currently select bool selection_;