]> git.lyx.org Git - lyx.git/blob - src/mathed/math_amsarrayinset.h
more const correctness
[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         MathAMSArrayInset const * asAMSArrayInset() const { return this; }
32
33         ///
34         void write(WriteStream & os) const;
35         ///
36         void normalize(NormalStream &) const;
37
38 private:
39         ///
40         char const * name_left() const;
41         ///
42         char const * name_right() const;
43
44         ///
45         string name_;
46 };
47
48 #endif