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_;
}
}
-void Row::par(Paragraph * p)
+void Row::par(ParagraphList::iterator pit)
{
- par_ = p;
+ pit_ = pit;
}