// -*- C++ -*-
+/**
+ * \file math_binominset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
#ifndef MATH_BINOMINSET_H
#define MATH_DINOMINSET_H
#include "math_fracbase.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
-/** Binom like objects
- \author André Pönitz
- */
+/// Binom like objects
class MathBinomInset : public MathFracbaseInset {
public:
///
- MathBinomInset();
+ explicit MathBinomInset(bool choose = false);
///
- MathInset * clone() const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
- void write(MathWriteInfo & os) const;
+ void write(WriteStream & os) const;
///
- void writeNormal(std::ostream &) const;
+ void normalize(NormalStream &) const;
///
- void metrics(MathMetricsInfo const & st) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
- void draw(Painter &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const;
private:
///
int dw() const;
+ ///
+ bool choose_;
};
#endif