]> 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 fc853613eadceda3b7521e3c485f780129ce1627..52beb7073f06b2418328cea41ac31fefcea20519 100644 (file)
@@ -28,6 +28,8 @@ public:
        /// create inset with single script and given nucleus
        MathScriptInset(MathAtom const & at, bool up);
        ///
+       mode_type currentMode() const { return MATH_MODE; }
+       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
@@ -98,8 +100,7 @@ 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