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 {
21 MathMatrixInset(int m, int n, short st = LM_ST_TEXT);
23 MathedInset * Clone();
25 void draw(Painter &, int, int);
27 void Write(std::ostream &, bool fragile);
31 void setData(MathedArray const &);
33 void SetAlign(char, string const &);
35 int GetColumns() const;
39 virtual bool isMatrix() const;
41 /// Use this to manage the extra information independently of paragraph
42 MathedRowContainer & getRowSt();
44 /// Number of columns & rows
51 char v_align_; // add approp. type
53 //std::vector<char> h_align;
54 string h_align_; // a vector would perhaps be more correct
55 /// Vertical structure
56 MathedRowContainer row_;
61 int MathMatrixInset::GetColumns() const
68 int MathMatrixInset::GetRows() const
75 bool MathMatrixInset::isMatrix() const
82 MathedRowContainer & MathMatrixInset::getRowSt()