]> 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 37adf09da2486c8c8345bdaf4bd137edf4773481..8d40cf27b31240dd52f950377b8321dd760708dc 100644 (file)
@@ -1,20 +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();
@@ -23,15 +30,15 @@ public:
        ///
        explicit MathKernInset(string const & wid);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void draw(MathPainterInfo &, 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(MathMetricsInfo & st) const;
 private:
        /// width in em
        LyXLength wid_;