]> git.lyx.org Git - lyx.git/blob - src/mathed/math_amsarrayinset.h
remove hard-wired association LaTeX macro <-> mathed inset
[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 // used for [pbvV]matrix, psmatrix etc
13 //
14
15
16 class MathAMSArrayInset : public MathGridInset {
17 public:
18         ///
19         MathAMSArrayInset(string const & name, int m, int n);
20         ///
21         MathAMSArrayInset(string const & name);
22         ///
23         MathInset * clone() const;
24         ///
25         void metrics(MathMetricsInfo & st) const;
26         ///
27         void draw(MathPainterInfo & pain, int x, int y) const;
28         ///
29         MathAMSArrayInset * asAMSArrayInset() { return this; }
30
31         ///
32         void write(WriteStream & os) const;
33         ///
34         void normalize(NormalStream &) const;
35
36 private:
37         ///
38         char const * name_left() const;
39         ///
40         char const * name_right() const;
41
42         ///
43         string name_;
44 };
45
46 #endif