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 Dimension const dimension(BufferView const &) const;
32 void draw(PainterInfo & pi, int x, int y) const;
34 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
36 bool getStatus(Cursor & cur, FuncRequest const & cmd,
37 FuncStatus & flag) const;
40 void infoize(odocstream & os) const;
42 void normalize(NormalStream &) const;
44 void maple(MapleStream &) const;
46 void mathmlize(MathStream &) const;
48 void htmlize(HtmlStream &) const;
50 void write(WriteStream & os) const;
52 void validate(LaTeXFeatures & features) const;
54 InsetCode lyxCode() const { return MATH_CASES_CODE; }
56 virtual Inset * clone() const;