2001-11-05 17:08:45 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_BINARYOPINSET_H
|
|
|
|
|
#define MATH_BINARYOPINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** An inset for multiplication
|
|
|
|
|
\author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*/
|
|
|
|
|
class MathBinaryOpInset : public MathNestInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
explicit MathBinaryOpInset(char op);
|
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void write(WriteStream & os) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void normalize(NormalStream &) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void metrics(MathMetricsInfo & st) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
int opwidth() const;
|
|
|
|
|
///
|
|
|
|
|
char op_;
|
|
|
|
|
///
|
|
|
|
|
mutable MathMetricsInfo mi_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|