]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_hullinset.h
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_hullinset.h
index fad9534409ad84e5e6a80be21f27b52ebc2ad7e6..d82b845c5b37a6cb450aff5990d38145742c029d 100644 (file)
@@ -26,13 +26,9 @@ public:
        ///
        explicit MathHullInset(std::string const & type);
        ///
-       MathHullInset(MathHullInset const &);
-       ///
        ~MathHullInset();
        ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
-       void operator=(MathHullInset const &);
+       MathHullInset & operator=(MathHullInset const &);
        ///
        mode_type currentMode() const;
        ///
@@ -69,7 +65,7 @@ public:
        void addRow(row_type row);
        /// delete a row
        void delRow(row_type row);
-       ///
+       /// swap two rows
        void swapRow(row_type row);
        /// add a column
        void addCol(col_type col);
@@ -122,8 +118,10 @@ public:
 
 
 protected:
-       ///
-       void priv_dispatch(LCursor & cur, FuncRequest & cmd);
+       MathHullInset(MathHullInset const &);
+
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+
        /// do we want to handle this event?
        bool getStatus(LCursor & cur, FuncRequest const & cmd,
                FuncStatus & status) const;
@@ -131,6 +129,7 @@ protected:
        std::string eolString(row_type row, bool fragile) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
        void setType(std::string const & type);
        ///
@@ -165,6 +164,8 @@ private:
        char const * standardFont() const;
        /// consistency check
        void check() const;
+       /// can this change its number of rows?
+       bool rowChangeOK() const;
        /// can this change its number of cols?
        bool colChangeOK() const;