2 #ifndef MATH_MATRIXINSET_H
3 #define MATH_MATRIXINSET_H
7 #include "math_parinset.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
18 class MathMatrixInset : public MathParInset {
22 MathMatrixInset(int m, int n, short st = LM_ST_TEXT);
25 MathMatrixInset(MathMatrixInset const &);
29 MathedInset * Clone();
31 void draw(Painter &, int, int);
33 void Write(std::ostream &, bool fragile);
37 void setData(MathedArray const &);
39 void SetAlign(char, string const &);
41 int GetColumns() const;
45 virtual bool isMatrix() const;
47 /// Use this to manage the extra information independently of paragraph
48 MathedRowContainer & getRowSt();
50 void setRowSt(MathedRowContainer & r);
52 /// Number of columns & rows
59 char v_align_; // add approp. type
61 //std::vector<char> h_align;
62 string h_align_; // a vector would perhaps be more correct
63 /// Vertical structure
64 MathedRowContainer row_;
69 int MathMatrixInset::GetColumns() const
76 int MathMatrixInset::GetRows() const
83 bool MathMatrixInset::isMatrix() const
90 MathedRowContainer & MathMatrixInset::getRowSt()
97 void MathMatrixInset::setRowSt(MathedRowContainer & r)