3 * \file math_amsarrayinset.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_AMSARRAYINSET_H
13 #define MATH_AMSARRAYINSET_H
15 #include "math_gridinset.h"
18 /// Inset for things like [pbvV]matrix, psmatrix etc
19 class MathAMSArrayInset : public MathGridInset {
22 MathAMSArrayInset(std::string const & name, int m, int n);
24 MathAMSArrayInset(std::string const & name);
26 void metrics(MetricsInfo & mi, Dimension & dim) const;
28 void draw(PainterInfo & pain, int x, int y) const;
30 MathAMSArrayInset * asAMSArrayInset() { return this; }
32 MathAMSArrayInset const * asAMSArrayInset() const { return this; }
35 bool getStatus(LCursor & cur, FuncRequest const & cmd,
36 FuncStatus & flag) const;
38 void write(WriteStream & os) const;
40 void infoize(std::ostream & os) const;
42 void normalize(NormalStream &) const;
44 void validate(LaTeXFeatures & features) const;
46 virtual std::auto_ptr<InsetBase> doClone() const;
48 char const * name_left() const;
50 char const * name_right() const;