+#include <config.h>
+
#ifdef __GNUG__
#pragma implementation
#endif
#include "math_binominset.h"
-#include "support.h"
+#include "math_support.h"
#include "support/LOstream.h"
+#include "math_mathmlstream.h"
MathBinomInset::MathBinomInset()
void MathBinomInset::draw(Painter & pain, int x, int y) const
{
- xo(x);
- yo(y);
int m = x + width() / 2;
xcell(0).draw(pain, m - xcell(0).width() / 2, y - xcell(0).descent() - 3 - 5);
xcell(1).draw(pain, m - xcell(1).width() / 2, y + xcell(1).ascent() + 3 - 5);
}
-void MathBinomInset::write(MathWriteInfo & os) const
+void MathBinomInset::write(WriteStream & os) const
{
os << '{' << cell(0) << " \\choose " << cell(1) << '}';
}
-void MathBinomInset::writeNormal(std::ostream & os) const
+void MathBinomInset::normalize(NormalStream & os) const
{
- os << "[binom ";
- cell(0).writeNormal(os);
- os << " ";
- cell(1).writeNormal(os);
- os << "] ";
+ os << "[binom " << cell(0) << ' ' << cell(1) << ']';
}