]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.h
* src/frontends/controllers/Dialog.{cpp,h}:
[lyx.git] / src / mathed / InsetMathSpace.h
index e1a8ac4e9d5c8e17ab1b3766f7bb7d9f2e5f6afd..c421bc1a844405d3a6a80bd613fc998c62993dbd 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,13 +32,7 @@ public:
        ///
        void incSpace();
        ///
-       int ascent() const;
-       ///
-       int descent() const;
-       ///
-       int width() const;
-       ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       bool metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
 
@@ -55,7 +49,7 @@ public:
        ///
        void write(WriteStream & os) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        ///
        int space_;
 };