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;
|
|
|
|
|
///
|
|
|
|
|
void draw(Painter &, int x, int y) const;
|
|
|
|
|
///
|
|
|
|
|
void write(MathWriteInfo & os) const;
|
|
|
|
|
///
|
2001-11-08 12:06:56 +00:00
|
|
|
|
void writeNormal(NormalStream &) const;
|
2001-11-05 17:08:45 +00:00
|
|
|
|
///
|
|
|
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
int opwidth() const;
|
|
|
|
|
///
|
|
|
|
|
char op_;
|
|
|
|
|
///
|
|
|
|
|
mutable MathMetricsInfo mi_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|