]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_kerninset.h
Replace LString.h with support/std_string.h,
[features.git] / src / mathed / math_kerninset.h
index d6c65e42134aad486e54791b6528a9f0c61c1925..8d40cf27b31240dd52f950377b8321dd760708dc 100644 (file)
@@ -1,18 +1,27 @@
 // -*- C++ -*-
+/**
+ * \file math_kerninset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_CHEATINSET_H
 #define MATH_CHEATINSET_H
 
-#include "math_diminset.h"
+#include "math_inset.h"
 #include "vspace.h"
-#include "LString.h"
+#include "support/std_string.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 +30,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(WriteStream & os) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void normalize(NormalStream &) const;
+       void write(WriteStream & os) const;
        ///
-       void metrics(MathMetricsInfo const & st) const;
+       void normalize(NormalStream & ns) const;
 private:
        /// width in em
        LyXLength wid_;