1 #include "math_bigopinset.h"
2 #include "mathed/math_parser.h"
3 #include "support/LOstream.h"
8 MathBigopInset::MathBigopInset(const latexkeys * l)
13 MathInset * MathBigopInset::clone() const
15 return new MathBigopInset(*this);
19 void MathBigopInset::write(ostream & os, bool /* fragile */) const
21 os << '\\' << sym_->name << ' ';
25 void MathBigopInset::writeNormal(ostream & os) const
27 os << "[bigop " << sym_->name << "] ";
31 void MathBigopInset::metrics(MathStyles st)
35 if (sym_->id > 0 && sym_->id < 256) {
38 code_ = (sym_->token == LM_TK_BIGSYM) ? LM_TC_BSYM : LM_TC_SYMB;
44 mathed_string_dim(code_, size(), ssym_, ascent_, descent_, width_);
48 void MathBigopInset::draw(Painter & pain, int x, int y)
53 drawStr(pain, code_, size_, x, y, ssym_);