3 * \file math_substackinset.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 "math_gridinset.h"
18 /// support for AMS's \\substack
20 class MathSubstackInset : public MathGridInset {
25 void metrics(MetricsInfo & mi, Dimension & dim) const;
27 void draw(PainterInfo & pi, int x, int y) const;
29 MathSubstackInset const * asSubstackInset() const { return this; }
32 bool getStatus(LCursor & cur, FuncRequest const & cmd,
33 FuncStatus & flag) const;
35 void infoize(std::ostream & os) const;
37 void write(WriteStream & os) const;
39 void normalize(NormalStream &) const;
41 void maple(MapleStream &) const;
43 void validate(LaTeXFeatures & features) const;
45 virtual std::auto_ptr<InsetBase> doClone() const;