3 * \file math_arrayinset.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_ARRAYINSET_H
13 #define MATH_ARRAYINSET_H
15 #include "math_gridinset.h"
18 /// Inset for things like \begin{array}...\end{array}
19 class MathArrayInset : public MathGridInset {
22 MathArrayInset(std::string const &, int m, int n);
24 MathArrayInset(std::string const &, int m, int n,
25 char valign, std::string const & halign);
27 MathArrayInset(std::string const &, char valign, std::string const & halign);
28 /// convenience constructor from whitespace/newline separated data
29 MathArrayInset(std::string const &, std::string const & str);
31 void metrics(MetricsInfo & mi, Dimension & dim) const;
33 void draw(PainterInfo & pi, int x, int y) const;
35 MathArrayInset * asArrayInset() { return this; }
37 MathArrayInset const * asArrayInset() const { return this; }
40 void write(WriteStream & os) const;
42 void infoize(std::ostream & os) const;
44 void normalize(NormalStream & os) const;
46 void maple(MapleStream & os) const;
48 void validate(LaTeXFeatures & features) const;
50 virtual std::auto_ptr<InsetBase> doClone() const;