]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.h
Fixed some lines that were too long. It compiled afterwards.
[lyx.git] / src / mathed / InsetMathKern.h
index 192b01e6a251effc0fad73539d675e02f6f65cb9..8a1e3ee04770031e936c2d73925b3b595bbe9244 100644 (file)
@@ -13,7 +13,7 @@
 #define MATH_CHEATINSET_H
 
 #include "InsetMath.h"
-#include "lyxlength.h"
+#include "Length.h"
 
 
 namespace lyx {
@@ -27,26 +27,21 @@ 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;
+       bool metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream & ns) const;
-       ///
-       int width() const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        /// width in em
-       LyXLength wid_;
-       /// in pixels
-       mutable int wid_pix_;
-
+       Length wid_;
 };