2001-08-13 15:26:41 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_BINOMINSET_H
|
|
|
|
|
#define MATH_DINOMINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_fracbase.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** Binom like objects
|
|
|
|
|
\author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*/
|
|
|
|
|
class MathBinomInset : public MathFracbaseInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
MathBinomInset();
|
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
|
|
|
|
///
|
2001-10-19 11:25:48 +00:00
|
|
|
|
void write(MathWriteInfo & os) const;
|
2001-08-13 15:26:41 +00:00
|
|
|
|
///
|
|
|
|
|
void writeNormal(std::ostream &) const;
|
|
|
|
|
///
|
2001-10-19 11:25:48 +00:00
|
|
|
|
void metrics(MathMetricsInfo const & st) const;
|
2001-08-13 15:26:41 +00:00
|
|
|
|
///
|
|
|
|
|
void draw(Painter &, int x, int y) const;
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
int dw() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|