]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathRow.h
Preserve \inputencoding value when switching to non-TeX fonts.
[lyx.git] / src / mathed / MathRow.h
index 797248c3a5512901cf284baf7011c8c42d63c3e1..e009b90d567979385a082a0caddda7367402bd98 100644 (file)
@@ -86,7 +86,7 @@ public:
        };
 
        ///
-       MathRow() {};
+       MathRow(int asc = 0, int des = 0) : caret_ascent(asc), caret_descent(des) {};
        ///
        typedef std::vector<Element> Elements;
        ///
@@ -111,13 +111,17 @@ public:
        MathRow(MetricsInfo & mi, MathData const * ar);
 
        //
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim);
        //
        void draw(PainterInfo & pi, int const x, int const y) const;
 
        /// superscript kerning
        int kerning(BufferView const *) const;
 
+       /// useful when the caret visits this cell
+       int caret_ascent, caret_descent;
+
+
 private:
        // Index of the first inset element before position i
        int before(int i) const;