]> 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 9b6d6c70b33deb93e3ad10c929fedb6354d7de03..579f29a3ab104ea675b33002504e33a254a2bea5 100644 (file)
 #include "InsetMath.h"
 
 
+namespace lyx {
+
+
 /// Smart spaces
 class InsetMathSpace : public InsetMath {
 public:
        ///
        explicit InsetMathSpace(int sp);
        ///
-       explicit InsetMathSpace(std::string const & name);
+       explicit InsetMathSpace(docstring const & name);
        ///
        InsetMathSpace const * asSpaceInset() const { return this; }
        ///
@@ -29,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;
@@ -52,8 +49,13 @@ public:
        ///
        void write(WriteStream & os) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        int space_;
+       ///
+       Dimension dim_;
 };
+
+
+} // namespace lyx
 #endif