]> 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 3a3de3b7c45210e37e7867fb7c293fc16b7d824e..817fbb4cf1e56c677ad9e83bb7c086e54057a97f 100644 (file)
@@ -28,8 +28,6 @@ public:
        ///
        explicit MathKernInset(std::string const & wid);
        ///
-       std::auto_ptr<InsetBase> clone() const;
-       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
@@ -37,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