]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrow.h
fix reading the author field.
[lyx.git] / src / lyxrow.h
index c17e6349333d89624e3ad57cf513966017c7fa82..d855d77e30942f745ed2698a2a20ac98c2084cfb 100644 (file)
@@ -58,24 +58,9 @@ public:
        unsigned int y_offset() const { return y_offset_; }
        /// cache the y position
        void y_offset(unsigned int newy) { y_offset_ = newy; }
-       ///
-       float x() const;
-       ///
-       void x(float);
-       ///
-       float fill_separator() const;
-       ///
-       void fill_separator(float);
-       ///
-       float fill_hfill() const;
-       ///
-       void fill_hfill(float);
-       ///
-       float fill_label_hfill() const;
-       ///
-       void fill_label_hfill(float);
        /// current debugging only
        void dump(const char * = "") const;
+
 private:
        /// first pos covered by this row
        lyx::pos_type pos_;
@@ -93,14 +78,21 @@ private:
        unsigned int top_of_text_;
        ///
        unsigned int baseline_;
-       /// offet from left border
-       float x_;
-       ///
-       float fill_separator_;
-       ///
-       float fill_hfill_;
-       ///
-       float fill_label_hfill_;
 };
 
+
+class RowMetrics {
+public:
+       RowMetrics();
+       /// 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;
+};
+
+
 #endif