]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrow.C
Alfredo's second patch
[lyx.git] / src / lyxrow.C
index 99dcf70d822a28f12518ffee85676bcaf3c137c8..682186c71f8f118d0ca034a5d689f5b697ed1806 100644 (file)
@@ -23,26 +23,38 @@ using std::max;
 using std::min;
 
 Row::Row()
-       : par_(0), 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(Paragraph * pa, pos_type po)
-       : par_(pa), pos_(po), fill_(0), height_(0), width_(0),
+Row::Row(ParagraphList::iterator pit, pos_type po)
+       : pit_(pit), pos_(po), fill_(0), height_(0), width_(0), y_(0),
          ascent_of_text_(0), baseline_(0)
 {}
 
 
-Paragraph * Row::par()
+void Row::y(unsigned int newy)
 {
-       return par_;
+       y_ = newy;
 }
 
 
-Paragraph * Row::par() const
+unsigned int Row::y() const
 {
-       return par_;
+       return y_;
+}
+
+
+ParagraphList::iterator Row::par()
+{
+       return pit_;
+}
+
+
+ParagraphList::iterator Row::par() const
+{
+       return pit_;
 }
 
 
@@ -52,9 +64,9 @@ unsigned short Row::height() const
 }
 
 
-void Row::par(Paragraph * p)
+void Row::par(ParagraphList::iterator pit)
 {
-       par_ = p;
+       pit_ = pit;
 }