It allows to manage the extra info independently of the paragraph data.
Only used for multiline paragraphs.
*/
-struct MathedRowSt
+class MathedRowSt
{
+public:
///
typedef std::vector<int> Widths;
numbered_(true), next_(0)
{}
/// Should be const but...
- MathedRowSt * getNext() const { return next_; }
+ MathedRowSt * getNext() const;
/// ...we couldn't use this.
- void setNext(MathedRowSt * n) { next_ = n; }
+ void setNext(MathedRowSt * n);
///
- string const & getLabel() const { return label_; }
+ string const & getLabel() const;
///
- bool isNumbered() const { return numbered_; }
+ bool isNumbered() const;
///
- int getBaseline() const { return y_; }
+ int getBaseline() const;
///
- void setBaseline(int b) { y_ = b; }
+ void setBaseline(int b);
///
- int ascent() const { return asc_; }
+ int ascent() const;
///
- int descent() const { return desc_; }
+ int descent() const;
///
- void ascent(int a) { asc_ = a; }
+ void ascent(int a);
///
- void descent(int d) { desc_ = d; }
+ void descent(int d);
///
- int getTab(int i) const { return widths_[i]; }
+ int getTab(int i) const;
///
- void setLabel(string const & l) { label_ = l; }
+ void setLabel(string const & l);
///
- void setNumbered(bool nf) { numbered_ = nf; }
+ void setNumbered(bool nf);
///
- void setTab(int i, int t) { widths_[i] = t; }
+ void setTab(int i, int t);
private:
/// Vericals
int asc_;
+ ///
int desc_;
+ ///
int y_;
/// widths
Widths widths_;
///
MathedRowSt * next_;
};
+
+
+inline
+MathedRowSt * MathedRowSt::getNext() const
+{
+ return next_;
+}
+
+
+inline
+void MathedRowSt::setNext(MathedRowSt * n)
+{
+ next_ = n;
+}
+
+
+inline
+string const & MathedRowSt::getLabel() const
+{
+ return label_;
+}
+
+
+inline
+bool MathedRowSt::isNumbered() const
+{
+ return numbered_;
+}
+
+
+inline
+int MathedRowSt::getBaseline() const
+{
+ return y_;
+}
+
+
+inline
+void MathedRowSt::setBaseline(int b)
+{
+ y_ = b;
+}
+
+
+inline
+int MathedRowSt::ascent() const
+{
+ return asc_;
+}
+
+
+inline
+int MathedRowSt::descent() const
+{
+ return desc_;
+}
+
+
+inline
+void MathedRowSt::ascent(int a)
+{
+ asc_ = a;
+}
+
+
+inline
+void MathedRowSt::descent(int d)
+{
+ desc_ = d;
+}
+
+
+inline
+int MathedRowSt::getTab(int i) const
+{
+ return widths_[i];
+}
+
+
+inline
+void MathedRowSt::setLabel(string const & l)
+{
+ label_ = l;
+}
+
+
+inline
+void MathedRowSt::setNumbered(bool nf)
+{
+ numbered_ = nf;
+}
+
+
+inline
+void MathedRowSt::setTab(int i, int t)
+{
+ widths_[i] = t;
+}
#endif