]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathData.h
Preserve \inputencoding value when switching to non-TeX fonts.
[lyx.git] / src / mathed / MathData.h
index efa581c4142de17569828dbfed772033c2454f5d..b118d6c41f2d412cae1fa22c3054196bb108dc4f 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <cstddef>
 #include <vector>
-#include <map>
 
 
 namespace lyx {
@@ -126,7 +125,8 @@ public:
 
        /// rebuild cached metrics information
        /** When \c tight is true, the height of the cell will be at least
-        *  that of 'x'. Otherwise, it will be the max height of the font.
+        *  the x height of the font. Otherwise, it will be the max height
+        *  of the font.
         */
        void metrics(MetricsInfo & mi, Dimension & dim, bool tight = true) const;
        ///
@@ -180,7 +180,7 @@ public:
        ///
        void updateBuffer(ParIterator const &, UpdateType);
        ///
-       void setBuffer(Buffer & b) { buffer_ = &b; }
+       void setBuffer(Buffer & b);
 
 protected:
        /// cached values for super/subscript placement
@@ -191,9 +191,6 @@ protected:
        mutable int kerning_;
        Buffer * buffer_;
 
-       /// cached object that describes typeset data
-       mutable std::map<BufferView*, MathRow> mrow_cache_;
-
 private:
        /// is this an exact match at this position?
        bool find1(MathData const & ar, size_type pos) const;