#endif
#include "math_binaryopinset.h"
-#include "Painter.h"
+#include "MathPainterInfo.h"
#include "support/LOstream.h"
#include "math_support.h"
#include "math_mathmlstream.h"
MathInset * MathBinaryOpInset::clone() const
-{
+{
return new MathBinaryOpInset(*this);
}
}
-void MathBinaryOpInset::metrics(MathMetricsInfo const & mi) const
+void MathBinaryOpInset::metrics(MathMetricsInfo & mi) const
{
mi_ = mi;
xcell(0).metrics(mi);
}
-void MathBinaryOpInset::draw(Painter & pain, int x, int y) const
-{
- xcell(0).draw(pain, x, y);
+void MathBinaryOpInset::draw(MathPainterInfo & pain, int x, int y) const
+{
+ xcell(0).draw(pain, x, y);
drawChar(pain, LM_TC_CONST, mi_, x + xcell(0).width() , y, op_);
- xcell(1).draw(pain, x + width() - xcell(1).width(), y);
+ xcell(1).draw(pain, x + width() - xcell(1).width(), y);
}