]> git.lyx.org Git - lyx.git/blobdiff - src/Row.h
FindAdv: Added handling of some chars found in unnicodesymbols
[lyx.git] / src / Row.h
index 426f45edcc10cba3d377f1271fbdcb6009bbaa72..b54a233b20856184e30b581857000d484ea0d8ec 100644 (file)
--- a/src/Row.h
+++ b/src/Row.h
@@ -209,10 +209,11 @@ public:
        int ascent() const { return dim_.asc; }
        ///
        int descent() const { return dim_.des; }
+
        ///
-       int totalAscent() const { return ascent() + top_padding; }
+       Dimension const & contents_dim() const { return contents_dim_; }
        ///
-       int totalDescent() const { return dim_.des + bottom_padding; }
+       Dimension & contents_dim() { return contents_dim_; }
 
        /// The offset of the left-most cursor position on the row
        int left_x() const;
@@ -307,10 +308,6 @@ public:
        int left_margin;
        /// the right margin of the row
        int right_margin;
-       /// possible padding above the row
-       int top_padding;
-       /// possible padding below the row
-       int bottom_padding;
        ///
        mutable pos_type sel_beg;
        ///
@@ -356,6 +353,8 @@ private:
        bool flushed_;
        /// Row dimension.
        Dimension dim_;
+       /// Row contents dimension. Does not contain the space above/below row.
+       Dimension contents_dim_;
        /// true when this row lives in a right-to-left paragraph
        bool rtl_;
        /// true when a changebar should be drawn in the margin