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 Dimension
const dimension(BufferView
const &) 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;
49 InsetCode
lyxCode() const { return MATH_TABULAR_CODE
; }
52 Inset
* clone() const;