]> git.lyx.org Git - lyx.git/blob - src/mathed/math_amsarrayinset.h
Fix reading of math macros
[lyx.git] / src / mathed / math_amsarrayinset.h
1 // -*- C++ -*-
2 #ifndef MATH_AMSARRAYINSET_H
3 #define MATH_AMSARRAYINSET_H
4
5 #include "math_gridinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /**
12  * Inset for things like [pbvV]matrix, psmatrix etc
13  *
14  * \author André Pönitz
15  *
16  * Full author contact details are available in file CREDITS
17  */
18
19 class MathAMSArrayInset : public MathGridInset {
20 public:
21         ///
22         MathAMSArrayInset(string const & name, int m, int n);
23         ///
24         MathAMSArrayInset(string const & name);
25         ///
26         MathInset * clone() const;
27         ///
28         void metrics(MathMetricsInfo & st) const;
29         ///
30         void draw(MathPainterInfo & pain, int x, int y) const;
31         ///
32         MathAMSArrayInset * asAMSArrayInset() { return this; }
33         ///
34         MathAMSArrayInset const * asAMSArrayInset() const { return this; }
35
36         ///
37         void write(WriteStream & os) const;
38         ///
39         void normalize(NormalStream &) const;
40
41 private:
42         ///
43         char const * name_left() const;
44         ///
45         char const * name_right() const;
46
47         ///
48         string name_;
49 };
50
51 #endif