2000-06-08 23:16:16 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
2000-06-08 23:16:16 +00:00
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
2000-06-15 15:54:05 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2000-06-08 23:16:16 +00:00
|
|
|
#include "lyxrow.h"
|
|
|
|
|
|
|
|
|
|
|
|
Row::Row()
|
2000-06-26 15:10:49 +00:00
|
|
|
: par_(0), pos_(0), fill_(0), height_(0), width_(0),
|
2000-06-08 23:16:16 +00:00
|
|
|
ascent_of_text_(0), baseline_(0), next_(0), previous_(0)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
void Row::par(Paragraph * p)
|
2000-06-08 23:16:16 +00:00
|
|
|
{
|
|
|
|
par_ = p;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-11-27 10:34:16 +00:00
|
|
|
void Row::pos(lyx::pos_type p)
|
2000-06-08 23:16:16 +00:00
|
|
|
{
|
|
|
|
pos_ = p;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-11-27 10:34:16 +00:00
|
|
|
lyx::pos_type Row::pos() const
|
2000-06-08 23:16:16 +00:00
|
|
|
{
|
|
|
|
return pos_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Row::fill(int f)
|
|
|
|
{
|
|
|
|
fill_ = f;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int Row::fill() const
|
|
|
|
{
|
|
|
|
return fill_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Row::height(unsigned short h)
|
|
|
|
{
|
|
|
|
height_ = h;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-26 15:10:49 +00:00
|
|
|
void Row::width(unsigned int w)
|
|
|
|
{
|
|
|
|
width_ = w;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unsigned int Row::width() const
|
|
|
|
{
|
|
|
|
return width_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-08 23:16:16 +00:00
|
|
|
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::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_;
|
|
|
|
}
|