]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathRow.h
Improved character count statistics for letter based insets (e.g. the LyX logo).
[features.git] / src / mathed / MathRow.h
index de63ec965ff7a4442191cd044e28be11a07edce4..6d1a410372b9582b7abeba5683d0d2253b45eedc 100644 (file)
@@ -65,7 +65,7 @@ public:
                MathClass mclass;
                /// the spacing around the element
                int before, after;
-               /// count wether the current mathdata is nested in macro(s)
+               /// count whether the current mathdata is nested in macro(s)
                int macro_nesting;
                /// Marker type
                InsetMath::marker_type marker;
@@ -86,7 +86,7 @@ public:
        };
 
        ///
-       MathRow() {};
+       MathRow(int asc = 0, int des = 0) : caret_ascent(asc), caret_descent(des) {};
        ///
        typedef std::vector<Element> Elements;
        ///
@@ -118,6 +118,10 @@ public:
        /// 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;