]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_kerninset.h
index 0437c393d0f511cd9c12bb0e8a368212cd591331..817fbb4cf1e56c677ad9e83bb7c086e54057a97f 100644 (file)
@@ -13,8 +13,7 @@
 #define MATH_CHEATINSET_H
 
 #include "math_inset.h"
-#include "vspace.h"
-#include "support/std_string.h"
+#include "lyxlength.h"
 
 
 /// The \kern primitive
@@ -27,9 +26,7 @@ public:
        ///
        explicit MathKernInset(LyXLength const & wid);
        ///
-       explicit MathKernInset(string const & wid);
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       explicit MathKernInset(std::string const & wid);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -38,8 +35,14 @@ public:
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream & ns) const;
+       ///
+       int width() const;
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// width in em
        LyXLength wid_;
+       /// in pixels
+       mutable int wid_pix_;
+       
 };
 #endif