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;
42 /// Number of columns & rows
49 char v_align_; // add approp. type
51 //std::vector<char> h_align;
52 string h_align_; // a vector would perhaps be more correct
57 int MathMatrixInset::GetColumns() const
64 int MathMatrixInset::GetRows() const
71 bool MathMatrixInset::isMatrix() const