]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathSpace.h
index e1a8ac4e9d5c8e17ab1b3766f7bb7d9f2e5f6afd..579f29a3ab104ea675b33002504e33a254a2bea5 100644 (file)
@@ -24,7 +24,7 @@ public:
        ///
        explicit InsetMathSpace(int sp);
        ///
-       explicit InsetMathSpace(std::string const & name);
+       explicit InsetMathSpace(docstring const & name);
        ///
        InsetMathSpace const * asSpaceInset() const { return this; }
        ///
@@ -32,12 +32,6 @@ 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;
@@ -55,9 +49,11 @@ public:
        ///
        void write(WriteStream & os) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        int space_;
+       ///
+       Dimension dim_;
 };