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"
18 /// Inset for things like \begin{tabular}...\end{tabular}
19 class InsetMathTabular : public InsetMathGrid {
22 InsetMathTabular(std::string const &, int m, int n);
24 InsetMathTabular(std::string const &, int m, int n,
25 char valign, std::string const & halign);
27 InsetMathTabular(std::string const &, char valign, std::string const & halign);
29 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 void draw(PainterInfo & pi, int x, int y) const;
33 InsetMathTabular * asTabularInset() { return this; }
35 InsetMathTabular const * asTabularInset() const { return this; }
38 void write(WriteStream & os) const;
40 void infoize(std::ostream & os) const;
42 void normalize(NormalStream &) const;
44 void maple(MapleStream &) const;
47 virtual std::auto_ptr<InsetBase> doClone() const;