2 #ifndef MATH_MATRIXINSET_H
3 #define MATH_MATRIXINSET_H
5 #include "math_gridinset.h"
11 /** Multiline math paragraph base class.
12 This is the base to all multiline editable math objects
13 like array and eqnarray.
14 \author Alejandro Aguilar Sierra
19 class MathMatrixInset : public MathGridInset {
24 explicit MathMatrixInset(MathInsetTypes t);
26 MathInset * clone() const;
28 void write(std::ostream &, bool fragile) const;
30 void metrics(MathStyles st) const;
32 void draw(Painter &, int x, int y) const;
34 string label(int row) const;
36 void label(int row, string const & label);
38 void numbered(int row, bool num);
40 bool numbered(int row) const;
42 bool numberedType() const;
48 std::vector<string> const getLabelList() const;
50 void validate(LaTeXFeatures & features) const;
64 void mutate(string const &);
69 MathInsetTypes getType() const;
73 virtual void setType(MathInsetTypes t);
75 void validate1(LaTeXFeatures & features);
77 void header_write(std::ostream &) const;
79 void footer_write(std::ostream &) const;
83 string nicelabel(int row) const;
86 MathInsetTypes objtype_;
88 std::vector<int> nonum_;
90 std::vector<string> label_;