]> git.lyx.org Git - lyx.git/blob - src/mathed/math_arrayinset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_arrayinset.h
1 // -*- C++ -*-
2 #ifndef MATH_ARRAYINSET_H
3 #define MATH_ARRAYINSET_H
4
5 #include "math_gridinset.h"
6
7
8 /**
9  * Inset for things like \begin{array}...\end{array}
10  *
11  * \author André Pönitz
12  *
13  * Full author contact details are available in file CREDITS
14  */
15
16 class MathArrayInset : public MathGridInset {
17 public:
18         ///
19         MathArrayInset(string const &, int m, int n);
20         ///
21         MathArrayInset(string const &, int m, int n,
22                 char valign, string const & halign);
23         ///
24         MathArrayInset(string const &, char valign, string const & halign);
25         /// convienience constructor from whitespace/newline seperated data
26         MathArrayInset(string const &, string const & str);
27         ///
28         MathInset * clone() const;
29         ///
30         void metrics(MathMetricsInfo & mi) const;
31         ///
32         void draw(MathPainterInfo & pi, int x, int y) const;
33         ///
34         MathArrayInset * asArrayInset() { return this; }
35         ///
36         MathArrayInset const * asArrayInset() const { return this; }
37
38         ///
39         void write(WriteStream & os) const;
40         ///
41         void normalize(NormalStream &) const;
42         ///
43         void maple(MapleStream &) const;
44
45 private:
46         ///
47         string name_;
48 };
49
50 #endif