#include <config.h>
#include "lyxrow.h"
-#include "paragraph.h"
-#include "layout.h"
-#include "lyxlayout.h"
+#include "debug.h"
using lyx::pos_type;
using std::min;
Row::Row()
- : pos_(0), fill_(0), height_(0), width_(0),
+ : pos_(0), end_(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),
+Row::Row(pos_type pos)
+ : pos_(pos), end_(0), fill_(0), height_(0), width_(0), y_(0),
ascent_of_text_(0), baseline_(0)
{}
-ParagraphList::iterator Row::par()
+void Row::y(unsigned int newy)
{
- return pit_;
+ y_ = newy;
}
-ParagraphList::iterator Row::par() const
+unsigned int Row::y() const
{
- return pit_;
+ return y_;
}
}
-void Row::par(ParagraphList::iterator pit)
-{
- pit_ = pit;
-}
-
-
void Row::pos(pos_type p)
{
pos_ = p;
}
+void Row::end(pos_type p)
+{
+ end_ = p;
+}
+
+
+pos_type Row::end() const
+{
+ return end_;
+}
+
+
void Row::fill(int f)
{
fill_ = f;
{
return !pos();
}
+
+
+void Row::dump(const char * s) const
+{
+ lyxerr << s << " pos: " << pos_ << " width: " << width_
+ << " height: " << height_
+ << " fill: " << fill_
+ << " ascent_of_text: " << ascent_of_text_
+ << " top_of_text: " << top_of_text_
+ << " y: " << y_ << std::endl;
+}
+