3 * \file InsetMathSubstack.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_SUBSTACK_H
13 #define MATH_SUBSTACK_H
15 #include "InsetMathGrid.h"
21 /// support for AMS's \\substack
23 class InsetMathSubstack
: public InsetMathGrid
{
26 InsetMathSubstack(Buffer
* buf
);
28 void metrics(MetricsInfo
& mi
, Dimension
& dim
) const;
30 void draw(PainterInfo
& pi
, int x
, int y
) const;
32 InsetMathSubstack
const * asSubstackInset() const { return this; }
35 bool getStatus(Cursor
& cur
, FuncRequest
const & cmd
,
36 FuncStatus
& flag
) const;
38 void infoize(odocstream
& os
) const;
40 void write(WriteStream
& os
) const;
42 void normalize(NormalStream
&) const;
44 void maple(MapleStream
&) const;
46 void validate(LaTeXFeatures
& features
) const;
48 InsetCode
lyxCode() const { return MATH_SUBSTACK_CODE
; }
51 virtual Inset
* clone() const;