]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.h
Revert r32684, per Andre's suggestion.
[lyx.git] / src / mathed / InsetMathSymbol.h
index 74b0b9180f878ee03a8135ee502fa8bcfd78d66d..5382f72e85712f3fe7ed510465eefdd683070165 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;
@@ -70,9 +68,11 @@ public:
        void write(WriteStream & os) const;
        ///
        void infoize2(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_SYMBOL_CODE; }
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        latexkeys const * sym_;
        ///
@@ -81,8 +81,6 @@ private:
        mutable int kerning_;
        ///
        mutable bool scriptable_;
-       ///
-       mutable LyXFont font_cache_;
 };
 
 } // namespace lyx