]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathAMSArray.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathAMSArray.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathAMSArray.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_AMSARRAYINSET_H
13 #define MATH_AMSARRAYINSET_H
14
15 #include "InsetMathGrid.h"
16
17
18 namespace lyx {
19
20 /// Inset for things like [pbvV]matrix, psmatrix etc
21 class InsetMathAMSArray : public InsetMathGrid {
22 public:
23         ///
24         InsetMathAMSArray(docstring const & name, int m, int n);
25         ///
26         InsetMathAMSArray(docstring const & name);
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const;
29         ///
30         Dimension const dimension(BufferView const &) const;
31         ///
32         void draw(PainterInfo & pain, int x, int y) const;
33         ///
34         InsetMathAMSArray * asAMSArrayInset() { return this; }
35         ///
36         InsetMathAMSArray const * asAMSArrayInset() const { return this; }
37
38         ///
39         bool getStatus(Cursor & cur, FuncRequest const & cmd,
40                 FuncStatus & flag) const;
41         ///
42         void write(WriteStream & os) const;
43         ///
44         void infoize(odocstream & os) const;
45         ///
46         void normalize(NormalStream &) const;
47         ///
48         void validate(LaTeXFeatures & features) const;
49 private:
50         virtual Inset * clone() const;
51         ///
52         char const * name_left() const;
53         ///
54         char const * name_right() const;
55
56         ///
57         docstring name_;
58 };
59
60 } // namespace lyx
61
62 #endif