]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBinom.h
last commit was incomplete... not sure how I managed this..
[lyx.git] / src / mathed / InsetMathBinom.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathBinom.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_BINOMINSET_H
13 #define MATH_BINOMINSET_H
14
15 #include "InsetMathFracBase.h"
16
17
18 namespace lyx {
19
20
21 /// Binom like objects
22 class InsetMathBinom : public InsetMathFracBase {
23 public:
24         ///
25         explicit InsetMathBinom(bool choose = false);
26         ///
27         void write(WriteStream & os) const;
28         ///
29         void normalize(NormalStream &) const;
30         ///
31         void metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo &, int x, int y) const;
34         /// draw decorations.
35         void drawDecoration(PainterInfo & pi, int x, int y) const
36         { drawMarkers2(pi, x, y); }
37         ///
38         bool extraBraces() const;
39 private:
40         virtual Inset * clone() const;
41         ///
42         int dw(int height) const;
43         ///
44         bool choose_;
45 };
46
47
48 } // namespace lyx
49
50 #endif