3 * \file InsetMathAMSArray.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 "InsetMathGrid.h"
20 /// Inset for things like [pbvV]matrix, psmatrix etc
21 class InsetMathAMSArray
: public InsetMathGrid
{
24 InsetMathAMSArray(Buffer
* buf
, docstring
const &, int m
, int n
);
26 InsetMathAMSArray(Buffer
* buf
, docstring
const &);
28 void metrics(MetricsInfo
& mi
, Dimension
& dim
) const;
30 void draw(PainterInfo
& pain
, int x
, int y
) const;
32 InsetMathAMSArray
* asAMSArrayInset() { return this; }
34 InsetMathAMSArray
const * asAMSArrayInset() const { return this; }
37 bool getStatus(Cursor
& cur
, FuncRequest
const & cmd
,
38 FuncStatus
& flag
) const;
40 void write(WriteStream
& os
) const;
42 void infoize(odocstream
& os
) const;
44 void normalize(NormalStream
&) const;
46 void validate(LaTeXFeatures
& features
) const;
48 InsetCode
lyxCode() const { return MATH_AMSARRAY_CODE
; }
50 virtual Inset
* clone() const;
52 char const * name_left() const;
54 char const * name_right() const;