]> git.lyx.org Git - lyx.git/blobdiff - src/Row.h
remove unused code
[lyx.git] / src / Row.h
index 2838f48e746b0e0c7ac3c7c934ed9dcae2c86151..a3afad4c1164a3f646f36f0753e8615844561194 100644 (file)
--- a/src/Row.h
+++ b/src/Row.h
@@ -38,7 +38,14 @@ public:
        ///
        void setChanged(bool c) { changed_ = c; }
        ///
-       void setCrc(size_type crc);
+       void setCrc(size_type crc) const;
+       /// Set the selection begin and end.
+       /**
+         * This is const because we update the selection status only at draw()
+         * time.
+         */
+       void setSelection(pos_type sel_beg, pos_type sel_end) const;
+
        ///
        void pos(pos_type p);
        ///
@@ -61,22 +68,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;
-
+       ///
+       mutable pos_type sel_beg;
+       ///
+       mutable 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