]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathArray.h
rename mathed/math_xinset into mathed/InsetMathX
[lyx.git] / src / mathed / InsetMathArray.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathArray.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_ARRAYINSET_H
13 #define MATH_ARRAYINSET_H
14
15 #include "InsetMathGrid.h"
16
17
18 /// Inset for things like \begin{array}...\end{array}
19 class InsetMathArray : public InsetMathGrid {
20 public:
21         ///
22         InsetMathArray(std::string const &, int m, int n);
23         ///
24         InsetMathArray(std::string const &, int m, int n,
25                 char valign, std::string const & halign);
26         ///
27         InsetMathArray(std::string const &, char valign, std::string const & halign);
28         /// convenience constructor from whitespace/newline separated data
29         InsetMathArray(std::string const &, std::string const & str);
30         ///
31         void metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo & pi, int x, int y) const;
34         ///
35         InsetMathArray * asArrayInset() { return this; }
36         ///
37         InsetMathArray const * asArrayInset() const { return this; }
38
39         ///
40         void write(WriteStream & os) const;
41         ///
42         void infoize(std::ostream & os) const;
43         ///
44         void normalize(NormalStream & os) const;
45         ///
46         void maple(MapleStream & os) const;
47         ///
48         void validate(LaTeXFeatures & features) const;
49 private:
50         virtual std::auto_ptr<InsetBase> doClone() const;
51         ///
52         std::string name_;
53 };
54
55 #endif