]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.h
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathKern.h
index 192b01e6a251effc0fad73539d675e02f6f65cb9..6bafa80ca7eb6e74d315e22e0dbe3b4674446cd0 100644 (file)
@@ -13,7 +13,7 @@
 #define MATH_CHEATINSET_H
 
 #include "InsetMath.h"
-#include "lyxlength.h"
+#include "Length.h"
 
 
 namespace lyx {
@@ -27,9 +27,9 @@ public:
        ///
        InsetMathKern();
        ///
-       explicit InsetMathKern(LyXLength const & wid);
+       explicit InsetMathKern(Length const & wid);
        ///
-       explicit InsetMathKern(std::string const & wid);
+       explicit InsetMathKern(docstring const & wid);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -38,15 +38,10 @@ public:
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream & ns) const;
-       ///
-       int width() const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        /// width in em
-       LyXLength wid_;
-       /// in pixels
-       mutable int wid_pix_;
-
+       Length wid_;
 };