]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathSymbol.h
index c5f91de0aea6a9f87f57fac47a0b903e3a4d4eda..76651ef1cd64396384d0a579726c3eb7a6321967 100644 (file)
@@ -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<Inset> 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