]> git.lyx.org Git - lyx.git/blob - src/mathed/math_arrayinset.h
small up/down tweaking
[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 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /**
12  * Inset for things like \begin{array}...\end{array}
13  *
14  * \author André Pönitz
15  *
16  * Full author contact details are available in file CREDITS
17  */
18
19 class MathArrayInset : public MathGridInset {
20 public:
21         ///
22         MathArrayInset(string const &, int m, int n);
23         ///
24         MathArrayInset(string const &, int m, int n,
25                 char valign, string const & halign);
26         ///
27         MathArrayInset(string const &, char valign, string const & halign);
28         /// convienience constructor from whitespace/newline seperated data
29         MathArrayInset(string const &, string const & str);
30         ///
31         MathInset * clone() const;
32         ///
33         void metrics(MathMetricsInfo & mi) const;
34         ///
35         void draw(MathPainterInfo & pi, int x, int y) const;
36         ///
37         MathArrayInset * asArrayInset() { return this; }
38         ///
39         MathArrayInset const * asArrayInset() const { return this; }
40
41         ///
42         void write(WriteStream & os) const;
43         ///
44         void normalize(NormalStream &) const;
45         ///
46         void maplize(MapleStream &) const;
47
48 private:
49         ///
50         string name_;
51 };
52
53 #endif