]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.h
fix tabular crashs
[lyx.git] / src / cursor.h
index 842ff17c63b9aae0797c469dbc8f38c9905be347..91e169f5f142a4464bdd4d6fcdc22da6bc675ce4 100644 (file)
@@ -13,6 +13,7 @@
 #define CURSOR_H
 
 #include "cursor_slice.h"
+#include "dispatchresult.h"
 
 #include <iosfwd>
 #include <vector>
@@ -159,7 +160,7 @@ public:
        /// return the cell of the inset this cursor is in
        idx_type & idx() { return current().idx(); }
        /// return the last possible cell in this inset
-       idx_type lastidx() const { return current().lastidx(); }
+       idx_type lastidx() const;
        /// return the paragraph this cursor is in
        par_type par() const { return current().par(); }
        /// return the paragraph this cursor is in
@@ -289,6 +290,10 @@ public:
        void replaceWord(std::string const & replacestring);
        /// update our view
        void update();
+       ///
+       void dispatched(dispatch_result_t res);
+       void notdispatched();
+       void noupdate();
 
        /// output
        friend std::ostream & operator<<(std::ostream & os, LCursor const & cur);
@@ -298,6 +303,9 @@ public:
        std::vector<CursorSlice> cursor_;
        /// the anchor position
        std::vector<CursorSlice> anchor_;
+       
+       /// 
+       DispatchResult disp_;
 
 private:
        ///