]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathTabular.h
15a8809f92f82c35f6c64c089a52f50d697429a6
[lyx.git] / src / mathed / InsetMathTabular.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathTabular.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_TABULARINSET_H
13 #define MATH_TABULARINSET_H
14
15 #include "InsetMathGrid.h"
16
17
18 namespace lyx {
19
20
21 /// Inset for things like \begin{tabular}...\end{tabular}
22 class InsetMathTabular : public InsetMathGrid {
23 public:
24         ///
25         InsetMathTabular(docstring const &, int m, int n);
26         ///
27         InsetMathTabular(docstring const &, int m, int n,
28                 char valign, docstring const & halign);
29         ///
30         void metrics(MetricsInfo & mi, Dimension & dim) const;
31         ///
32         Dimension const dimension(BufferView const &) const;
33         ///
34         void draw(PainterInfo & pi, int x, int y) const;
35         ///
36         InsetMathTabular * asTabularInset() { return this; }
37         ///
38         InsetMathTabular const * asTabularInset() const { return this; }
39
40         ///
41         void write(WriteStream & os) const;
42         ///
43         void infoize(odocstream & os) const;
44         ///
45         void normalize(NormalStream &) const;
46         ///
47         void maple(MapleStream &) const;
48
49 private:
50         Inset * clone() const;
51         ///
52         docstring name_;
53 };
54
55 } // namespace lyx
56
57 #endif