X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxrow.C;h=539253a3a6a40a7db2abd5a7ed9690f2bfbabe1c;hb=d4ee9c38b6aa45146f67658352623bcbc3e0ad9b;hp=ec8261cccf1e7b9b21b5c22405ed2f22f2952fa1;hpb=2889b5fd3e8987d0c265ff4726a7fb6c6cb6c034;p=lyx.git diff --git a/src/lyxrow.C b/src/lyxrow.C index ec8261cccf..539253a3a6 100644 --- a/src/lyxrow.C +++ b/src/lyxrow.C @@ -8,11 +8,17 @@ * * ====================================================== */ +#include + +#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) {} @@ -71,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;