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;
30 void draw(PainterInfo & pi, int x, int y) const;
32 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
34 bool getStatus(Cursor & cur, FuncRequest const & cmd,
35 FuncStatus & flag) const;
38 void infoize(odocstream & os) const;
40 void normalize(NormalStream &) const;
42 void maple(MapleStream &) const;
44 void mathmlize(MathStream &) const;
46 void htmlize(HtmlStream &) const;
48 void write(WriteStream & os) const;
50 void validate(LaTeXFeatures & features) const;
52 InsetCode lyxCode() const { return MATH_CASES_CODE; }
54 int displayColSpace(col_type) const;
56 int leftMargin() const { return 8; } //override
58 int rightMargin() const { return 0; } //override
61 virtual Inset * clone() const;