]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.h
* src/frontends/controllers/Dialog.{cpp,h}:
[lyx.git] / src / mathed / InsetMathChar.h
index 8ee4e9c5cc0c84809776637be2511bea210b6ef4..994185e33800fdf632053e442d547d8337576d0e 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "InsetMath.h"
 
+#include "Font.h"
 
 namespace lyx {
 
@@ -31,7 +32,7 @@ public:
        ///
        void drawT(TextPainter &, int x, int y) const;
        ///
-       int width() const { return width_; }
+       int kerning() const { return kerning_; }
 
        ///
        void write(WriteStream & os) const;
@@ -49,11 +50,11 @@ public:
        bool isRelOp() const;
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        /// the character
        char_type char_;
-       /// cached width
-       mutable int width_;
+       /// cached kerning for superscript
+       mutable int kerning_;
 };
 
 } // namespace lyx