]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrow.C
reformatting and remove using delc
[lyx.git] / src / lyxrow.C
index ec8261cccf1e7b9b21b5c22405ed2f22f2952fa1..4a90389d9b4c66d517a85ab9811eb8712671409c 100644 (file)
@@ -8,11 +8,17 @@
  *
  * ====================================================== */
 
+#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)
 {}
 
@@ -23,18 +29,6 @@ void Row::par(LyXParagraph * p)
 }
 
 
-LyXParagraph * Row::par()
-{
-       return par_;
-}
-
-
-LyXParagraph * Row::par() const
-{
-       return par_;
-}
-
-
 void Row::pos(LyXParagraph::size_type p)
 {
        pos_ = p;
@@ -65,9 +59,15 @@ void Row::height(unsigned short h)
 }
 
 
-unsigned short Row::height() const
+void Row::width(unsigned int w)
+{
+       width_ = w;
+}
+
+
+unsigned int Row::width() const
 {
-       return height_;
+       return width_;
 }
 
 
@@ -101,12 +101,6 @@ void Row::next(Row * r)
 }
 
 
-Row * Row::next() const
-{
-       return next_;
-}
-
-
 void Row::previous(Row * r)
 {
        previous_ = r;