]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.h
code cosmetics to the iterator fix
[lyx.git] / src / mathed / math_scriptinset.h
index 3855f6f251a9564556a8255ca2dc87cacda6ea30..52beb7073f06b2418328cea41ac31fefcea20519 100644 (file)
@@ -28,7 +28,7 @@ public:
        /// create inset with single script and given nucleus
        MathScriptInset(MathAtom const & at, bool up);
        ///
-       std::auto_ptr<InsetBase> clone() const;
+       mode_type currentMode() const { return MATH_MODE; }
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -100,9 +100,9 @@ public:
        /// say whether we have displayed limits
        void infoize2(std::ostream & os) const;
 protected:
-       ///
-       void priv_dispatch(LCursor & cur, FuncRequest & cmd);
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// returns x offset for main part
        int dxx() const;
        /// returns width of nucleus if any