1 #include "math_bigopinset.h"
3 #include "mathed/support.h"
4 #include "support/LOstream.h"
9 MathBigopInset::MathBigopInset(string const & name, int id)
16 MathInset * MathBigopInset::clone() const
18 return new MathBigopInset(*this);
22 void MathBigopInset::write(ostream & os, bool /* fragile */) const
24 //bool f = sym_ != LM_int && sym_ != LM_oint && size() == LM_ST_DISPLAY;
29 void MathBigopInset::writeNormal(ostream & os) const
31 os << "[bigop " << name() << "] ";
35 void MathBigopInset::metrics(MathStyles st)
37 //cerr << "\nBigopDraw\n";
40 if (sym_ < 256 || sym_ == LM_oint) {
42 ssym_ += (sym_ == LM_oint) ? LM_int : sym_;
49 mathed_string_dim(code_, size(), ssym_, ascent_, descent_, width_);
55 void MathBigopInset::draw(Painter & pain, int x, int y)
60 drawStr(pain, code_, size_, x, y, ssym_);
62 if (sym_ == LM_oint) {
64 int yy = y - (ascent_ - descent_) / 2;
65 pain.arc(xx, yy, width_, width_, 0, 360 * 64, LColor::mathline);