]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.h
Make Helge happy: no more crash on arrow up/down in math macro
[lyx.git] / src / mathed / math_spaceinset.h
index da61168c005147f5ae2bfc4470b25cb335a74069..c6fad086d4a618d470f974d2fdf4da04a795f30a 100644 (file)
@@ -21,9 +21,7 @@ public:
        ///
        explicit MathSpaceInset(int sp);
        ///
-       explicit MathSpaceInset(string const & name);
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       explicit MathSpaceInset(std::string const & name);
        ///
        MathSpaceInset const * asSpaceInset() const { return this; }
        ///
@@ -31,6 +29,12 @@ public:
        ///
        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_;
 };