2 #ifndef MATH_ARRAYINSET_H
3 #define MATH_ARRAYINSET_H
5 #include "math_gridinset.h"
9 * Inset for things like \begin{array}...\end{array}
11 * \author André Pönitz
13 * Full author contact details are available in file CREDITS
16 class MathArrayInset : public MathGridInset {
19 MathArrayInset(string const &, int m, int n);
21 MathArrayInset(string const &, int m, int n,
22 char valign, string const & halign);
24 MathArrayInset(string const &, char valign, string const & halign);
25 /// convienience constructor from whitespace/newline seperated data
26 MathArrayInset(string const &, string const & str);
28 MathInset * clone() const;
30 Dimension metrics(MetricsInfo & mi) const;
32 void draw(PainterInfo & pi, int x, int y) const;
34 MathArrayInset * asArrayInset() { return this; }
36 MathArrayInset const * asArrayInset() const { return this; }
39 void write(WriteStream & os) const;
41 void infoize(std::ostream & os) const;
43 void normalize(NormalStream & os) const;
45 void maple(MapleStream & os) const;