]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.h
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathSymbol.h
index 9a1e9ac8974168e081c2c43daaafcae584fc7f85..25c1a8d9f01ba7f81010d692d462b31cfd819f3e 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -14,8 +14,6 @@
 
 #include "InsetMath.h"
 
-#include "LyXFont.h"
-
 namespace lyx {
 
 class latexkeys;
@@ -33,11 +31,11 @@ public:
        ///
        explicit InsetMathSymbol(docstring const & name);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       int kerning() const { return kerning_; }
+       int kerning(BufferView const *) const { return kerning_; }
 
        ///
        bool isRelOp() const;
@@ -72,7 +70,7 @@ public:
        void infoize2(odocstream & os) const;
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        latexkeys const * sym_;
        ///
@@ -81,8 +79,6 @@ private:
        mutable int kerning_;
        ///
        mutable bool scriptable_;
-       ///
-       mutable LyXFont font_cache_;
 };
 
 } // namespace lyx