+#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"
+using std::max;
+
+
MathBinomInset::MathBinomInset()
{}
MathInset * MathBinomInset::clone() const
-{
+{
return new MathBinomInset(*this);
}
xcell(0).metrics(mi);
xcell(1).metrics(mi);
ascent_ = xcell(0).height() + 4 + 5;
- descent_ = xcell(1).height() + 4 - 5;
- width_ = std::max(xcell(0).width(), xcell(1).width()) + 2 * dw() + 4;
+ descent_ = xcell(1).height() + 4 - 5;
+ width_ = max(xcell(0).width(), xcell(1).width()) + 2 * dw() + 4;
}
}
-void MathBinomInset::write(MathWriteInfo & os) const
+void MathBinomInset::write(WriteStream & os) const
{
os << '{' << cell(0) << " \\choose " << cell(1) << '}';
}
-void MathBinomInset::writeNormal(NormalStream & 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) << ']';
}