]> git.lyx.org Git - features.git/blobdiff - src/Row.cpp
* Row: Use Dimension class.
[features.git] / src / Row.cpp
index 8651763d88f2a548019b79a2866d0062d10deef0..61ae559a166cb57e1c9f2200d71567887615bb83 100644 (file)
@@ -29,12 +29,12 @@ RowMetrics::RowMetrics()
 
 
 Row::Row()
-       : pos_(0), end_(0), ascent_(0), descent_(0), width_(0)
+       : pos_(0), end_(0)
 {}
 
 
 Row::Row(pos_type pos)
-       : pos_(pos), end_(0), ascent_(0), descent_(0), width_(0)
+       : pos_(pos), end_(0)
 {}
 
 
@@ -62,36 +62,12 @@ pos_type Row::endpos() const
 }
 
 
-void Row::width(int w)
-{
-       width_ = w;
-}
-
-
-int Row::width() const
-{
-       return width_;
-}
-
-
-void Row::ascent(int b)
-{
-       ascent_ = b;
-}
-
-
-int Row::ascent() const
-{
-       return ascent_;
-}
-
-
 void Row::dump(const char * s) const
 {
        lyxerr << s << " pos: " << pos_ << " end: " << end_
-               << " width: " << width_
-               << " ascent: " << ascent_
-               << " descent: " << descent_
+               << " width: " << dim_.wid
+               << " ascent: " << dim_.asc
+               << " descent: " << dim_.des
                << std::endl;
 }