2 #ifndef MATH_AMSARRAYINSET_H
3 #define MATH_AMSARRAYINSET_H
5 #include "math_gridinset.h"
9 * Inset for things like [pbvV]matrix, psmatrix etc
11 * \author André Pönitz
13 * Full author contact details are available in file CREDITS
16 class MathAMSArrayInset : public MathGridInset {
19 MathAMSArrayInset(string const & name, int m, int n);
21 MathAMSArrayInset(string const & name);
23 MathInset * clone() const;
25 void metrics(MathMetricsInfo & st) const;
27 void draw(MathPainterInfo & pain, int x, int y) const;
29 MathAMSArrayInset * asAMSArrayInset() { return this; }
31 MathAMSArrayInset const * asAMSArrayInset() const { return this; }
34 void write(WriteStream & os) const;
36 void normalize(NormalStream &) const;
40 char const * name_left() const;
42 char const * name_right() const;