]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.h
oh well
[lyx.git] / src / mathed / math_kerninset.h
index 69da69f96152c45d59cba63f19a15b1d9685cbb7..5af50f4651e47722c097536fa7846ca3effed3ad 100644 (file)
@@ -2,19 +2,27 @@
 #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;
@@ -23,6 +31,9 @@ public:
        ///
        void normalize(NormalStream & ns) const;
        ///
-       void metrics(MathMetricsInfo const &cwmist) const;
+       void metrics(MathMetricsInfo const & st) const;
+private:
+       /// width in em
+       LyXLength wid_;
 };
 #endif