2 #ifndef MATH_MATRIXINSET_H
3 #define MATH_MATRIXINSET_H
7 #include "math_parinset.h"
9 /** Multiline math paragraph base class.
10 This is the base to all multiline editable math objects
11 like array and eqnarray.
12 \author Alejandro Aguilar Sierra
14 class MathMatrixInset : public MathParInset {
18 MathMatrixInset(int m = 1, int n = 1, short st = LM_ST_TEXT);
21 MathMatrixInset(MathMatrixInset *);
23 MathedInset * Clone();
25 virtual ~MathMatrixInset();
27 void draw(Painter &, int, int);
29 void Write(std::ostream &, bool fragile);
33 void setData(MathedArray const &);
35 void SetAlign(char, string const &);
37 int GetColumns() const;
41 virtual bool isMatrix() const;
43 /// Use this to manage the extra information independently of paragraph
44 MathedRowSt * getRowSt() const;
46 void setRowSt(MathedRowSt * r);
48 /// Number of columns & rows
55 char v_align_; // add approp. type
57 //std::vector<char> h_align;
58 string h_align_; // a vector would perhaps be more correct
59 /// Vertical structure
65 int MathMatrixInset::GetColumns() const
72 int MathMatrixInset::GetRows() const
79 bool MathMatrixInset::isMatrix() const
86 MathedRowSt * MathMatrixInset::getRowSt() const
93 void MathMatrixInset::setRowSt(MathedRowSt * r)