]> git.lyx.org Git - lyx.git/blob - src/mathed/math_arrayinset.h
The std::string mammoth path.
[lyx.git] / src / mathed / math_arrayinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_arrayinset.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 "math_gridinset.h"
16
17
18 /// Inset for things like \begin{array}...\end{array}
19 class MathArrayInset : public MathGridInset {
20 public:
21         ///
22         MathArrayInset(std::string const &, int m, int n);
23         ///
24         MathArrayInset(std::string const &, int m, int n,
25                 char valign, std::string const & halign);
26         ///
27         MathArrayInset(std::string const &, char valign, std::string const & halign);
28         /// convienience constructor from whitespace/newline seperated data
29         MathArrayInset(std::string const &, std::string const & str);
30         ///
31         virtual std::auto_ptr<InsetBase> clone() const;
32         ///
33         void metrics(MetricsInfo & mi, Dimension & dim) const;
34         ///
35         void draw(PainterInfo & 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 infoize(std::ostream & os) const;
45         ///
46         void normalize(NormalStream & os) const;
47         ///
48         void maple(MapleStream & os) const;
49
50 private:
51         ///
52         std::string name_;
53 };
54
55 #endif