lyx_mirror/src/mathed/math_binominset.h

42 lines
808 B
C
Raw Normal View History

// -*- 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<EFBFBD> P<EFBFBD>nitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATH_BINOMINSET_H
#define MATH_BINOMINSET_H
#include "math_fracbase.h"
/// Binom like objects
class MathBinomInset : public MathFracbaseInset {
public:
///
explicit MathBinomInset(bool choose = false);
///
void write(WriteStream & os) const;
///
void normalize(NormalStream &) const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo &, int x, int y) const;
///
bool extraBraces() const;
private:
virtual std::auto_ptr<InsetBase> doClone() const;
///
int dw() const;
///
bool choose_;
};
#endif