]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathChar.h
index c1d5b1974a1608927410608c1795d1e0cb847bc7..b602555da433308b34b30f2778634c90da0397ca 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "InsetMath.h"
 
-#include "Font.h"
-
 namespace lyx {
 
 /// The base character inset.
@@ -24,9 +22,9 @@ public:
        ///
        explicit InsetMathChar(char_type c);
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void setBuffer(Buffer &) {}
        ///
-       Dimension const dimension(BufferView const &) const { return dim_; }
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -34,7 +32,7 @@ public:
        ///
        void drawT(TextPainter &, int x, int y) const;
        ///
-       int kerning() const { return kerning_; }
+       int kerning(BufferView const *) const { return kerning_; }
 
        ///
        void write(WriteStream & os) const;
@@ -57,8 +55,6 @@ private:
        char_type char_;
        /// cached kerning for superscript
        mutable int kerning_;
-       /// FIXME: move this out to BufferView
-       mutable Dimension dim_;
 };
 
 } // namespace lyx