-void Row::ascent_of_text(unsigned short a)
-{
- ascent_of_text_ = a;
-}
-
-
-unsigned short Row::ascent_of_text() const
-{
- return ascent_of_text_;
-}
-
-
-void Row::top_of_text(unsigned int top)
-{
- top_of_text_ = top;
-}
-
-
-unsigned int Row::top_of_text() const
-{
- return top_of_text_;
-}
-
-
-void Row::baseline(unsigned int b)
-{
- baseline_ = b;
-}
-
-
-unsigned int Row::baseline() const
-{
- return baseline_;
-}
-
-
-void Row::next(Row * r)
-{
- next_ = r;
-}
-
-
-void Row::previous(Row * r)
-{
- previous_ = r;
-}
-
-
-Row * Row::previous() const
-{
- return previous_;
-}
-
-
-bool Row::isParStart() const
-{
- return !pos();
-}
-
-
-bool Row::isParEnd() const
-{
- return !next() || next()->par() != par();
-}
-
-
-pos_type Row::lastPos() const
-{
- if (!par()->size())
- return 0;
-
- if (isParEnd()) {
- return par()->size() - 1;
- } else {
- return next()->pos() - 1;
- }
-}
-
-
-namespace {
-
-bool nextRowIsAllInset(Row const & row, pos_type last)
-{
- if (!row.par()->isInset(last + 1))
- return false;
-
- Inset * i = row.par()->getInset(last + 1);
- return i->needFullRow() || i->display();
-}
-
-};
-
-
-pos_type Row::lastPrintablePos() const
-{
- pos_type const last = lastPos();
-
- // if this row is an end of par, just act like lastPos()
- if (isParEnd())
- return last;
-
- bool const nextrownotinset = !nextRowIsAllInset(*this, last);
-
- if (nextrownotinset && par()->isSeparator(last))
- return last - 1;
-
- return last;
-}
-
-
-int Row::numberOfSeparators() const