X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_gridinset.h;h=7b0b329552cf40efaeb3b22545c92c69f01e50be;hb=183239b7def8ca0e51432f2d88891d4b9f055953;hp=5fc1e513648ddb943f83799cf7a1b0954a1ff685;hpb=1eaa3eb913b16f4e6f5991b9c53b0b9ab3f84948;p=lyx.git diff --git a/src/mathed/math_gridinset.h b/src/mathed/math_gridinset.h index 5fc1e51364..7b0b329552 100644 --- a/src/mathed/math_gridinset.h +++ b/src/mathed/math_gridinset.h @@ -20,7 +20,6 @@ * This is the base to all grid-like editable math objects */ class MathGridInset : public MathNestInset { - public: /// additional per-cell information @@ -94,8 +93,6 @@ public: /// Ensures that the dialog is closed. ~MathGridInset(); /// - virtual std::auto_ptr clone() const; - /// void metrics(MetricsInfo & mi) const; /// void metrics(MetricsInfo & mi, Dimension &) const; @@ -155,10 +152,6 @@ public: /// bool idxLast(LCursor &) const; /// - bool idxHome(LCursor &) const; - /// - bool idxEnd(LCursor &) const; - /// bool idxDelete(idx_type & idx); /// pulls cell after pressing erase void idxGlue(idx_type idx); @@ -215,8 +208,10 @@ public: //void octave(OctaveStream &) const; protected: + virtual void doDispatch(LCursor & cur, FuncRequest & cmd); /// - DispatchResult priv_dispatch(LCursor & cur, FuncRequest const & cmd); + bool getStatus(LCursor & cur, FuncRequest const & cmd, + FuncStatus & flag) const; /// returns x offset of cell compared to inset int cellXOffset(idx_type idx) const; /// returns y offset of cell compared to inset @@ -239,6 +234,8 @@ public: std::vector cellinfo_; /// char v_align_; // add approp. type +private: + virtual std::auto_ptr doClone() const; }; #endif