]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathKern.h
index 04a5e49bef13ae155e8e086120f3771905e86707..6bafa80ca7eb6e74d315e22e0dbe3b4674446cd0 100644 (file)
@@ -13,7 +13,7 @@
 #define MATH_CHEATINSET_H
 
 #include "InsetMath.h"
-#include "lyxlength.h"
+#include "Length.h"
 
 
 namespace lyx {
@@ -27,11 +27,11 @@ public:
        ///
        InsetMathKern();
        ///
-       explicit InsetMathKern(LyXLength const & wid);
+       explicit InsetMathKern(Length const & wid);
        ///
        explicit InsetMathKern(docstring const & wid);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -39,9 +39,9 @@ public:
        ///
        void normalize(NormalStream & ns) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        /// width in em
-       LyXLength wid_;
+       Length wid_;
 };