]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.h
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / mathed / InsetMathSpace.h
index 9b6d6c70b33deb93e3ad10c929fedb6354d7de03..1a413734362bcde09b7a7547d4cf68f2c3e31cbd 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; }
        ///
@@ -35,7 +38,7 @@ public:
        ///
        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;
 
@@ -56,4 +59,7 @@ private:
        ///
        int space_;
 };
+
+
+} // namespace lyx
 #endif