]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_gridinset.h
mathed uglyfication
[lyx.git] / src / mathed / math_gridinset.h
index 45c722d5501fceaa2b8126f3e5a7e0ad8f98108a..37ff4a289b8eec34ed140a5cd9d4af5a46ff2fca 100644 (file)
@@ -135,9 +135,6 @@ public:
        MathGridInset * asGridInset() { return this; }
        /// identifies GridInset
        MathGridInset const * asGridInset() const { return this; }
-       /// local dispatcher
-       dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
-
        ///
        col_type ncols() const;
        ///
@@ -148,19 +145,19 @@ public:
        row_type row(idx_type idx) const;
 
        ///
-       bool idxUpDown(idx_type & idx, pos_type & pos, bool up, int targetx) const;
+       bool idxUpDown(BufferView &, bool up, int targetx) const;
        ///
-       bool idxLeft(idx_type & idx, pos_type & pos) const;
+       bool idxLeft(BufferView &) const;
        ///
-       bool idxRight(idx_type & idx, pos_type & pos) const;
+       bool idxRight(BufferView &) const;
        ///
-       bool idxFirst(idx_type & idx, pos_type & pos) const;
+       bool idxFirst(BufferView &) const;
        ///
-       bool idxLast(idx_type & idx, pos_type & pos) const;
+       bool idxLast(BufferView &) const;
        ///
-       bool idxHome(idx_type & idx, pos_type & pos) const;
+       bool idxHome(BufferView &) const;
        ///
-       bool idxEnd(idx_type & idx, pos_type & pos) const;
+       bool idxEnd(BufferView &) const;
        ///
        bool idxDelete(idx_type & idx);
        /// pulls cell after pressing erase
@@ -218,6 +215,11 @@ public:
        //void octave(OctaveStream &) const;
 
 protected:
+       ///
+       virtual
+       DispatchResult
+       priv_dispatch(BufferView & bv, FuncRequest const & cmd);
+
        /// returns x offset of cell compared to inset
        int cellXOffset(idx_type idx) const;
        /// returns y offset of cell compared to inset
@@ -229,7 +231,7 @@ protected:
        /// extract number of columns from alignment string
        col_type guessColumns(std::string const & halign) const;
        /// splits cells and shifts right part to the next cell
-       void splitCell(idx_type &, pos_type & pos);
+       void splitCell(BufferView & pos);
 
 public:
        /// row info