1 #include "math_symbolinset.h"
2 #include "math_parser.h"
4 #include "support/LOstream.h"
9 MathSymbolInset::MathSymbolInset(const latexkeys * l)
14 MathInset * MathSymbolInset::clone() const
16 return new MathSymbolInset(*this);
20 void MathSymbolInset::write(ostream & os, bool /* fragile */) const
22 os << '\\' << sym_->name << ' ';
26 void MathSymbolInset::writeNormal(ostream & os) const
28 os << "[bigop " << sym_->name << "] ";
32 void MathSymbolInset::metrics(MathStyles st) const
35 mathed_char_dim(LM_TC_SYMB, size_, sym_->id, ascent_, descent_, width_);
39 void MathSymbolInset::draw(Painter & pain, int x, int y) const
44 drawChar(pain, LM_TC_SYMB, size_, x, y, sym_->id);
48 bool MathSymbolInset::isRelOp() const
50 return sym_->id == LM_leq || sym_->id == LM_geq;