]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_kerninset.h
index 480486cdb6bb2b4ac5938bb0c73c702ed7af8bb3..1d8db5c0b86d0cdc947c1b3a753ee03423e50329 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef MATH_CHEATINSET_H
 #define MATH_CHEATINSET_H
 
-#include "math_diminset.h"
+#include "math_inset.h"
 #include "vspace.h"
 #include "LString.h"
 #include "math_nestinset.h"
@@ -11,7 +11,7 @@
 /// The \kern primitive
 /// Some hack for visual effects
 
-class MathKernInset : public MathDimInset {
+class MathKernInset : public MathInset {
 public:
        ///
        MathKernInset();
@@ -20,15 +20,15 @@ public:
        ///
        explicit MathKernInset(string const & wid);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void draw(PainterInfo &, int x, int y) const;
+       void 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;
-       ///
-       void metrics(MetricsInfo & st) const;
 private:
        /// width in em
        LyXLength wid_;