2 #ifndef MATH_MATRIXINSET_H
3 #define MATH_MATRIXINSET_H
13 /** Multiline math paragraph base class.
14 This is the base to all multiline editable math objects
15 like array and eqnarray.
16 \author Alejandro Aguilar Sierra
21 class MathMatrixInset : public MathGridInset {
26 explicit MathMatrixInset(MathInsetTypes t);
28 MathInset * clone() const;
30 void Write(std::ostream &, bool fragile) const;
32 void Metrics(MathStyles st);
36 void draw(Painter &, int, int);
38 string label(int row) const;
40 void label(int row, string const & label);
42 void numbered(int row, bool num);
44 bool numbered(int row) const;
46 bool numberedType() const;
52 std::vector<string> const getLabelList() const;
54 void Validate(LaTeXFeatures & features);
68 void mutate(string const &);
72 /// Splits cells and shifts right part to the next cell
73 void splitCell(int idx);
77 void Validate1(LaTeXFeatures & features);
79 void header_write(std::ostream &) const;
81 void footer_write(std::ostream &) const;
85 string nicelabel(int row) const;
88 std::vector<int> nonum_;
90 std::vector<string> label_;