7 /** The physical structure of a row and aditional information is stored here.
8 It allows to manage the extra info independently of the paragraph data.
9 Only used for multiline paragraphs.
14 typedef std::vector<int> Widths;
19 : asc_(0), desc_(0), y_(0), widths_(n + 1, 0),
20 numbered_(true), next_(0)
22 /// Should be const but...
23 MathedRowSt * getNext() const { return next_; }
24 /// ...we couldn't use this.
25 void setNext(MathedRowSt * n) { next_ = n; }
27 string const & getLabel() const { return label_; }
29 bool isNumbered() const { return numbered_; }
31 int getBaseline() const { return y_; }
33 void setBaseline(int b) { y_ = b; }
35 int ascent() const { return asc_; }
37 int descent() const { return desc_; }
39 void ascent(int a) { asc_ = a; }
41 void descent(int d) { desc_ = d; }
43 int getTab(int i) const { return widths_[i]; }
45 void setLabel(string const & l) { label_ = l; }
47 void setNumbered(bool nf) { numbered_ = nf; }
49 void setTab(int i, int t) { widths_[i] = t; }