]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_cursor.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_cursor.h
index 99c6018729d829b0474a06bb582a7f354816842e..8043f3b7d9c032441f99ca14366b63b39857a818 100644 (file)
@@ -17,9 +17,6 @@
 #ifndef MATH_CURSOR
 #define MATH_CURSOR
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "math_inset.h"
 #include "math_iterator.h"
@@ -67,10 +64,10 @@ public:
        void insert(MathArray const &);
        ///
        void paste(string const & data);
-       ///
-       void erase();
-       ///
-       void backspace();
+       /// return false for empty math insets
+       bool erase();
+       /// return false for empty math insets
+       bool backspace();
        /// called for LFUN_HOME etc
        bool home(bool sel = false);
        /// called for LFUN_END etc
@@ -128,7 +125,7 @@ public:
        size_type size() const;
        ///
        bool script(bool);
-       /// 
+       ///
        bool interpret(char);
        /// interpret name a name of a macro
        void macroModeClose();
@@ -221,7 +218,7 @@ public:
        unsigned depth() const;
 
        /// local dispatcher
-       MathInset::result_type dispatch(FuncRequest const & cmd);
+       dispatch_result dispatch(FuncRequest const & cmd);
        /// describe the situation
        string info() const;
        /// dump selection information for debugging
@@ -230,7 +227,7 @@ public:
        void dump(char const * str) const;
        /// moves on
        void setSelection(MathIterator const & where, size_type n);
-       /// grab selection marked by anchor and current cursor 
+       /// grab selection marked by anchor and current cursor
        string grabSelection() const;
        /// guess what
        string grabAndEraseSelection();