Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathTabular.h
blob0fb6c27961cc96b31b0f2b1cb5d5fa2858e8f335
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.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_TABULARINSET_H
13 #define MATH_TABULARINSET_H
15 #include "InsetMathGrid.h"
18 namespace lyx {
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; }
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 InsetCode lyxCode() const { return MATH_TABULAR_CODE; }
51 private:
52 Inset * clone() const;
53 ///
54 docstring name_;
57 } // namespace lyx
59 #endif