]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrow.C
remove CXX_WORKING_NAMESPACES
[lyx.git] / src / lyxrow.C
index 497748628f6538a7cb9a57b2a313bebaab6ad7f3..539253a3a6a40a7db2abd5a7ed9690f2bfbabe1c 100644 (file)
 
 #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)
 {}
 
@@ -73,6 +77,18 @@ unsigned short Row::height() const
 }
 
 
+void Row::width(unsigned int w)
+{
+       width_ = w;
+}
+
+
+unsigned int Row::width() const
+{
+       return width_;
+}
+
+
 void Row::ascent_of_text(unsigned short a)
 {
        ascent_of_text_ = a;