]> 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 0e559afe92cf6909e1a441100d2db7dc349e41ab..6bafa80ca7eb6e74d315e22e0dbe3b4674446cd0 100644 (file)
 #define MATH_CHEATINSET_H
 
 #include "InsetMath.h"
-#include "lyxlength.h"
+#include "Length.h"
+
+
+namespace lyx {
 
 
 /// The \kern primitive
@@ -24,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;
        ///
@@ -35,14 +38,12 @@ 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_;
 };
+
+
+} // namespace lyx
 #endif