3 * \file InsetMathTabular.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_TABULARINSET_H
13 #define MATH_TABULARINSET_H
15 #include "InsetMathGrid.h"
21 /// Inset for things like \begin{tabular}...\end{tabular}
22 class InsetMathTabular : public InsetMathGrid {
25 InsetMathTabular(docstring const &, int m, int n);
27 InsetMathTabular(docstring const &, int m, int n,
28 char valign, docstring const & halign);
30 InsetMathTabular(docstring const &, char valign, docstring const & halign);
32 void metrics(MetricsInfo & mi, Dimension & dim) const;
34 void draw(PainterInfo & pi, int x, int y) const;
36 InsetMathTabular * asTabularInset() { return this; }
38 InsetMathTabular const * asTabularInset() const { return this; }
41 void write(WriteStream & os) const;
43 void infoize(odocstream & os) const;
45 void normalize(NormalStream &) const;
47 void maple(MapleStream &) const;
50 virtual std::auto_ptr<InsetBase> doClone() const;