]> git.lyx.org Git - lyx.git/blob - src/mathed/math_binominset.h
Make Helge happy: no more crash on arrow up/down in math macro
[lyx.git] / src / mathed / math_binominset.h
1 // -*- C++ -*-
2 /**
3  * \file math_binominset.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 "math_fracbase.h"
16
17
18 /// Binom like objects
19 class MathBinomInset : public MathFracbaseInset {
20 public:
21         ///
22         explicit MathBinomInset(bool choose = false);
23         ///
24         void write(WriteStream & os) const;
25         ///
26         void normalize(NormalStream &) const;
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const;
29         ///
30         void draw(PainterInfo &, int x, int y) const;
31 private:
32         virtual std::auto_ptr<InsetBase> doClone() const;
33         ///
34         int dw() const;
35         ///
36         bool choose_;
37 };
38
39 #endif