]> 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 cb4c8614cd38f5993cc31a8821ce5cf501634724..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;
        ///
@@ -110,14 +110,18 @@ public:
        // compute the spacings.
        MathRow(MetricsInfo & mi, MathData const * ar);
 
-       // this returns true if the caret is here
-       bool metrics(MetricsInfo & mi, Dimension & dim);
+       //
+       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;