* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
#include "lyxrow.h"
Row::Row()
- : par_(0), pos_(0), fill_(0), height_(0),
+ : par_(0), pos_(0), fill_(0), height_(0), width_(0),
ascent_of_text_(0), baseline_(0), next_(0), previous_(0)
{}
-void Row::par(LyXParagraph * p)
+void Row::par(Paragraph * p)
{
par_ = p;
}
-LyXParagraph * Row::par()
-{
- return par_;
-}
-
-
-LyXParagraph * Row::par() const
-{
- return par_;
-}
-
-
-void Row::pos(LyXParagraph::size_type p)
+void Row::pos(Paragraph::size_type p)
{
pos_ = p;
}
-LyXParagraph::size_type Row::pos() const
+Paragraph::size_type Row::pos() const
{
return pos_;
}
}
-unsigned short Row::height() const
+void Row::width(unsigned int w)
+{
+ width_ = w;
+}
+
+
+unsigned int Row::width() const
{
- return height_;
+ return width_;
}
}
-Row * Row::next() const
-{
- return next_;
-}
-
-
void Row::previous(Row * r)
{
previous_ = r;