lyx_mirror/src/mathed/math_binaryopinset.h

38 lines
652 B
C
Raw Normal View History

// -*- 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(WriteStream & os) const;
///
void normalize(NormalStream &) const;
///
void metrics(MathMetricsInfo const & st) const;
private:
///
int opwidth() const;
///
char op_;
///
mutable MathMetricsInfo mi_;
};
#endif