5 #include "support/LAssert.h"
8 /** The physical structure of a row and aditional information is stored here.
9 It allows to manage the extra info independently of the paragraph data.
10 Only used for multiline paragraphs.
17 typedef std::vector<int> Widths;
22 string const & getLabel() const;
24 bool isNumbered() const;
26 int getBaseline() const;
28 void setBaseline(int b);
38 int getTab(unsigned int i) const;
40 void setLabel(string const & l);
42 void setNumbered(bool nf);
44 void setTab(unsigned int i, int t);
46 friend class MathedRowSt;
63 class MathedRowContainer {
66 typedef std::vector<MathedRowStruct> data_type;
68 typedef data_type::size_type size_type;
74 explicit iterator(MathedRowContainer * m);
75 /// "better" conversion to bool
76 operator void *() const;
78 MathedRowStruct * operator->();
80 MathedRowStruct const * operator->() const;
86 bool operator==(const iterator & it) const;
89 MathedRowContainer * st_;
102 /// insert item before 'it'
103 void insert(iterator const & it);
104 /// erase item pointed to by 'it'
105 void erase(iterator & it);
106 /// access to last row
107 MathedRowStruct & back();
108 /// access to last row
109 MathedRowStruct const & back() const;
110 /// append empty element
113 size_type size() const;
117 std::vector<MathedRowStruct> data_;