A bit more re-organization.
[lyx.git] / src / mathed / InsetMathArray.h
blob79236882c7198ed87f9ed857567aa19704e29130
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.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_ARRAYINSET_H
13 #define MATH_ARRAYINSET_H
15 #include "InsetMathGrid.h"
18 namespace lyx {
21 /// Inset for things like \begin{array}...\end{array}
22 class InsetMathArray : public InsetMathGrid {
23 public:
24 ///
25 InsetMathArray(Buffer * buf, docstring const &, int m, int n);
26 ///
27 InsetMathArray(Buffer * buf, docstring const &, int m, int n,
28 char valign, docstring const & halign);
29 /// convenience constructor from whitespace/newline separated data
30 InsetMathArray(Buffer * buf, docstring const &, docstring const & str);
31 ///
32 void metrics(MetricsInfo & mi, Dimension & dim) const;
33 ///
34 Dimension const dimension(BufferView const &) const;
35 ///
36 void draw(PainterInfo & pi, int x, int y) const;
37 ///
38 InsetMathArray * asArrayInset() { return this; }
39 ///
40 InsetMathArray const * asArrayInset() const { return this; }
42 ///
43 void write(WriteStream & os) const;
44 ///
45 void infoize(odocstream & os) const;
46 ///
47 void normalize(NormalStream & os) const;
48 ///
49 void maple(MapleStream & os) const;
50 ///
51 void validate(LaTeXFeatures & features) const;
52 ///
53 InsetCode lyxCode() const { return MATH_ARRAY_CODE; }
54 private:
55 virtual Inset * clone() const;
56 ///
57 docstring name_;
61 } // namespace lyx
63 #endif