]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrow.C
* lyxrow.[Ch]: add end_ member
[lyx.git] / src / lyxrow.C
index 204dbf5ea9f59c8bf44fe31c9934ca5a27034eef..40adfda74840f3bb25ce44dd84b84cacde57e842 100644 (file)
@@ -21,13 +21,13 @@ using std::max;
 using std::min;
 
 Row::Row()
-       : pos_(0), fill_(0), height_(0), width_(0), y_(0),
+       : pos_(0), end_(0), fill_(0), height_(0), width_(0), y_(0),
          ascent_of_text_(0), baseline_(0)
 {}
 
 
-Row::Row(pos_type po)
-       : pos_(po), fill_(0), height_(0), width_(0), y_(0),
+Row::Row(pos_type pos)
+       : pos_(pos), end_(0), fill_(0), height_(0), width_(0), y_(0),
          ascent_of_text_(0), baseline_(0)
 {}
 
@@ -62,6 +62,18 @@ pos_type Row::pos() const
 }
 
 
+void Row::end(pos_type p)
+{
+       end_ = p;
+}
+
+
+pos_type Row::end() const
+{
+       return end_;
+}
+
+
 void Row::fill(int f)
 {
        fill_ = f;
@@ -141,6 +153,6 @@ void Row::dump(const char * s) const
                << " fill: " << fill_
                << " ascent_of_text: " << ascent_of_text_
                << " top_of_text: " << top_of_text_
-               << " y: " << y_ << "\n";
+               << " y: " << y_ << std::endl;
 }