]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_kerninset.h
index d2b7aabe600ad69dd0b74aac233e81e601155041..1d8db5c0b86d0cdc947c1b3a753ee03423e50329 100644 (file)
@@ -2,17 +2,16 @@
 #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"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /// The \kern primitive
+/// Some hack for visual effects
 
-class MathKernInset : public MathDimInset {
+class MathKernInset : public MathInset {
 public:
        ///
        MathKernInset();
@@ -21,15 +20,15 @@ public:
        ///
        explicit MathKernInset(string const & wid);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void draw(Painter &, int x, int y) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void write(MathWriteInfo & os) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void writeNormal(NormalStream &) const;
+       void write(WriteStream & os) const;
        ///
-       void metrics(MathMetricsInfo const & st) const;
+       void normalize(NormalStream & ns) const;
 private:
        /// width in em
        LyXLength wid_;