]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSubstack.h
1950acd4fa74d486d8a83605f33aa3cef8467980
[lyx.git] / src / mathed / InsetMathSubstack.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathSubstack.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_SUBSTACK_H
13 #define MATH_SUBSTACK_H
14
15 #include "InsetMathGrid.h"
16
17
18 namespace lyx {
19
20
21 /// support for AMS's \\substack
22
23 class InsetMathSubstack : public InsetMathGrid {
24 public:
25         ///
26         explicit InsetMathSubstack(Buffer * buf);
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const override;
29         ///
30         void draw(PainterInfo & pi, int x, int y) const override;
31         ///
32         InsetMathSubstack const * asSubstackInset() const override { return this; }
33
34         ///
35         bool getStatus(Cursor & cur, FuncRequest const & cmd,
36                 FuncStatus & flag) const override;
37         ///
38         void infoize(odocstream & os) const override;
39         ///
40         void write(WriteStream & os) const override;
41         ///
42         void mathmlize(MathMLStream &) const override;
43         ///
44         void htmlize(HtmlStream &) const override;
45         ///
46         void normalize(NormalStream &) const override;
47         ///
48         void maple(MapleStream &) const override;
49         ///
50         void validate(LaTeXFeatures &) const override;
51         ///
52         InsetCode lyxCode() const override { return MATH_SUBSTACK_CODE; }
53
54 private:
55         Inset * clone() const override;
56 };
57
58
59
60 } // namespace lyx
61 #endif