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(Buffer * buf, docstring const &, int m, int n);
27 InsetMathTabular(Buffer * buf, docstring const &, int m, int n,
28 char valign, docstring const & halign);
30 void metrics(MetricsInfo & mi, Dimension & dim) const override;
32 void draw(PainterInfo & pi, int x, int y) const override;
34 InsetMathTabular * asTabularInset() { return this; }
36 InsetMathTabular const * asTabularInset() const { return this; }
39 void write(TeXMathStream & os) const override;
41 void infoize(odocstream & os) const override;
43 void normalize(NormalStream &) const override;
45 void maple(MapleStream &) const override;
47 InsetCode lyxCode() const override { return MATH_TABULAR_CODE; }
49 int leftMargin() const override { return 4; }
51 int rightMargin() const override { return 2; }
53 bool handlesMulticolumn() const override { return true; }
56 Inset * clone() const override;