]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_spaceinset.h
index 00dd1a80186af52b02f221ea0eec99eb67fa65d9..c6fad086d4a618d470f974d2fdf4da04a795f30a 100644 (file)
@@ -23,14 +23,18 @@ public:
        ///
        explicit MathSpaceInset(std::string const & name);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        MathSpaceInset const * asSpaceInset() const { return this; }
        ///
        MathSpaceInset * asSpaceInset() { return this; }
        ///
        void incSpace();
        ///
+       int ascent() const;
+       ///
+       int descent() const;
+       ///
+       int width() const;
+       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
@@ -48,6 +52,7 @@ public:
        ///
        void write(WriteStream & os) const;
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
        int space_;
 };