3 * \file InsetMathCases.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_CASESINSET_H
13 #define MATH_CASESINSET_H
15 #include "InsetMathGrid.h"
23 class InsetMathCases : public InsetMathGrid {
26 explicit InsetMathCases(Buffer * buf, row_type rows = 1u);
28 void metrics(MetricsInfo & mi, Dimension & dim) const override;
30 void draw(PainterInfo & pi, int x, int y) const override;
32 void doDispatch(Cursor & cur, FuncRequest & cmd) override;
34 bool getStatus(Cursor & cur, FuncRequest const & cmd,
35 FuncStatus & flag) const override;
38 void infoize(odocstream & os) const override;
40 void normalize(NormalStream &) const override;
42 void maple(MapleStream &) const override;
44 void mathmlize(MathMLStream &) const override;
46 void htmlize(HtmlStream &) const override;
48 void write(TeXMathStream & os) const override;
50 void validate(LaTeXFeatures & features) const override;
52 InsetCode lyxCode() const override { return MATH_CASES_CODE; }
54 int displayColSpace(col_type) const override;
56 int leftMargin() const override { return 8; }
58 int rightMargin() const override { return 0; }
59 /// see e.g. https://tex.stackexchange.com/a/133283/87201
60 bool handlesMulticolumn() const override { return true; }
63 Inset * clone() const override;