2 #ifndef MATH_ARRAYINSET_H
3 #define MATH_ARRAYINSET_H
5 #include "math_gridinset.h"
12 * Inset for things like \begin{array}...\end{array}
14 * \author André Pönitz
16 * Full author contact details are available in file CREDITS
19 class MathArrayInset : public MathGridInset {
22 MathArrayInset(string const &, int m, int n);
24 MathArrayInset(string const &, int m, int n,
25 char valign, string const & halign);
27 MathArrayInset(string const &, char valign, string const & halign);
28 /// convienience constructor from whitespace/newline seperated data
29 MathArrayInset(string const &, string const & str);
31 MathInset * clone() const;
33 void metrics(MathMetricsInfo & mi) const;
35 void draw(MathPainterInfo & pi, int x, int y) const;
37 MathArrayInset * asArrayInset() { return this; }
39 MathArrayInset const * asArrayInset() const { return this; }
42 void write(WriteStream & os) const;
44 void normalize(NormalStream &) const;
46 void maplize(MapleStream &) const;