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;
32 void draw(PainterInfo & pi, int x, int y) const;
34 InsetMathTabular * asTabularInset() { return this; }
36 InsetMathTabular const * asTabularInset() const { return this; }
39 void write(WriteStream & os) const;
41 void infoize(odocstream & os) const;
43 void normalize(NormalStream &) const;
45 void maple(MapleStream &) const;
47 InsetCode lyxCode() const { return MATH_TABULAR_CODE; }
49 int leftMargin() const { return 4; } //override
51 int rightMargin() const { return 2; } //override
53 bool handlesMulticolumn() const { return true; } //override
56 Inset * clone() const;