]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.h
Fix.
[lyx.git] / src / mathed / math_kerninset.h
index 69da69f96152c45d59cba63f19a15b1d9685cbb7..b4a857101b864e08115ad5838756003f234d95ee 100644 (file)
@@ -2,27 +2,35 @@
 #ifndef MATH_CHEATINSET_H
 #define MATH_CHEATINSET_H
 
+#include "math_diminset.h"
+#include "vspace.h"
+#include "LString.h"
 #include "math_nestinset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
+/// The \kern primitive
 /// Some hack for visual effects
 
-class MathKernInset : public MathNestInset {
+class MathKernInset : public MathDimInset {
 public:
        ///
        MathKernInset();
        ///
+       explicit MathKernInset(LyXLength const & wid);
+       ///
+       explicit MathKernInset(string const & wid);
+       ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int x, int y) const;
+       void draw(MathPainterInfo &, int x, int y) const;
        ///
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream & ns) const;
        ///
-       void metrics(MathMetricsInfo const &cwmist) const;
+       void metrics(MathMetricsInfo & st) const;
+private:
+       /// width in em
+       LyXLength wid_;
 };
 #endif