]> git.lyx.org Git - lyx.git/blobdiff - src/Row.h
Revert 23154.
[lyx.git] / src / Row.h
index 6d57857680ccb84ac71c44bc9f42fbe4672661cc..ae8ed71fd1d73382e2f9d9eead7ed01eb51c6bb2 100644 (file)
--- a/src/Row.h
+++ b/src/Row.h
@@ -36,7 +36,12 @@ public:
        ///
        bool changed() const { return changed_; }
        ///
-       void setCrc(size_type crc);
+       void setChanged(bool c) { changed_ = c; }
+       ///
+       void setCrc(size_type crc) const;
+       ///
+       void setSelection(pos_type sel_beg, pos_type sel_end);
+
        ///
        void pos(pos_type p);
        ///
@@ -59,22 +64,23 @@ public:
        int descent() const { return dim_.des; }
 
        /// current debugging only
-       void dump(const char * = "") const;
+       void dump(char const * = "") const;
 
        /// width of a separator (i.e. space)
        double separator;
-       /// width of hfills in the body
-       double hfill;
        /// width of hfills in the label
        double label_hfill;
        /// the x position of the row
        double x;
-
+       ///
+       pos_type sel_beg;
+       ///
+       pos_type sel_end;
 private:
        /// has the Row appearance changed since last drawing?
-       bool changed_;
+       mutable bool changed_;
        /// CRC of row contents.
-       size_type crc_;
+       mutable size_type crc_;
        /// first pos covered by this row
        pos_type pos_;
        /// one behind last pos covered by this row