]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_gridinset.h
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_gridinset.h
index c60ed8108f3133f3458aef423fd51d87bb4ccae5..e664dd7cff962ab50d48ed49211c3a53b73e0988 100644 (file)
@@ -94,7 +94,7 @@ public:
        /// Ensures that the dialog is closed.
        ~MathGridInset();
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       std::auto_ptr<InsetBase> clone() const;
        ///
        void metrics(MetricsInfo & mi) const;
        ///
@@ -145,19 +145,15 @@ public:
        row_type row(idx_type idx) const;
 
        ///
-       bool idxUpDown(idx_type & idx, pos_type & pos, bool up, int targetx) const;
+       bool idxUpDown(LCursor &, bool up) const;
        ///
-       bool idxLeft(idx_type & idx, pos_type & pos) const;
+       bool idxLeft(LCursor &) const;
        ///
-       bool idxRight(idx_type & idx, pos_type & pos) const;
+       bool idxRight(LCursor &) const;
        ///
-       bool idxFirst(idx_type & idx, pos_type & pos) const;
+       bool idxFirst(LCursor &) const;
        ///
-       bool idxLast(idx_type & idx, pos_type & pos) const;
-       ///
-       bool idxHome(idx_type & idx, pos_type & pos) const;
-       ///
-       bool idxEnd(idx_type & idx, pos_type & pos) const;
+       bool idxLast(LCursor &) const;
        ///
        bool idxDelete(idx_type & idx);
        /// pulls cell after pressing erase
@@ -216,10 +212,7 @@ public:
 
 protected:
        ///
-       virtual
-       DispatchResult
-       priv_dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
-
+       void priv_dispatch(LCursor & cur, 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
@@ -231,7 +224,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(LCursor & cur);
 
 public:
        /// row info