3 * \file InsetMathBinom.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_BINOMINSET_H
13 #define MATH_BINOMINSET_H
15 #include "InsetMathFracBase.h"
21 /// Binom like objects
22 class InsetMathBinom : public InsetMathFracBase {
25 explicit InsetMathBinom(bool choose = false);
27 void write(WriteStream & os) const;
29 void normalize(NormalStream &) const;
31 bool metrics(MetricsInfo & mi, Dimension & dim) const;
33 void draw(PainterInfo &, int x, int y) const;
35 void drawDecoration(PainterInfo & pi, int x, int y) const
36 { drawMarkers2(pi, x, y); }
38 bool extraBraces() const;
40 virtual std::auto_ptr<InsetBase> doClone() const;