]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.h
* src/frontends/GuiDocument.{cpp,h}:
[lyx.git] / src / mathed / InsetMathChar.h
index c1d5b1974a1608927410608c1795d1e0cb847bc7..902f50e8fbe80ec4525ee22a64409bdd69fa1668 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "InsetMath.h"
 
-#include "Font.h"
-
 namespace lyx {
 
 /// The base character inset.
@@ -26,15 +24,13 @@ public:
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       Dimension const dimension(BufferView const &) const { return dim_; }
-       ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
        void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        ///
        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 +53,6 @@ private:
        char_type char_;
        /// cached kerning for superscript
        mutable int kerning_;
-       /// FIXME: move this out to BufferView
-       mutable Dimension dim_;
 };
 
 } // namespace lyx