]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrow.C
Alfredo's second patch
[lyx.git] / src / lyxrow.C
index 33356ec0d78d20d3fb7314491bfc2e20c1761bc2..682186c71f8f118d0ca034a5d689f5b697ed1806 100644 (file)
@@ -23,17 +23,29 @@ using std::max;
 using std::min;
 
 Row::Row()
-       : pos_(0), fill_(0), height_(0), width_(0),
+       : pos_(0), fill_(0), height_(0), width_(0), y_(0),
          ascent_of_text_(0), baseline_(0)
 {}
 
 
 Row::Row(ParagraphList::iterator pit, pos_type po)
-       : pit_(pit), pos_(po), fill_(0), height_(0), width_(0),
+       : pit_(pit), pos_(po), fill_(0), height_(0), width_(0), y_(0),
          ascent_of_text_(0), baseline_(0)
 {}
 
 
+void Row::y(unsigned int newy)
+{
+       y_ = newy;
+}
+
+
+unsigned int Row::y() const
+{
+       return y_;
+}
+
+
 ParagraphList::iterator Row::par()
 {
        return pit_;