]> git.lyx.org Git - lyx.git/blob - src/mathed/math_bigopinset.C
some visual feedback for extra vertical space
[lyx.git] / src / mathed / math_bigopinset.C
1 #include "math_bigopinset.h"
2 #include "mathed/math_parser.h"
3 #include "mathed/support.h"
4 #include "support/LOstream.h"
5
6
7 using std::ostream;
8
9 MathBigopInset::MathBigopInset(const latexkeys * l)
10         : sym_(l)
11 {}
12
13
14 MathInset * MathBigopInset::clone() const
15 {
16         return new MathBigopInset(*this);
17 }
18
19
20 void MathBigopInset::write(ostream & os, bool /* fragile */) const
21 {
22         os << '\\' << sym_->name << ' ';
23 }
24
25
26 void MathBigopInset::writeNormal(ostream & os) const
27 {
28         os << "[bigop " << sym_->name << "] ";
29 }
30
31
32 void MathBigopInset::metrics(MathStyles st) const
33 {
34         size_ = st;
35         mathed_char_dim(LM_TC_BSYM, st, sym_->id, ascent_, descent_, width_);
36 }
37
38
39 void MathBigopInset::draw(Painter & pain, int x, int y) const
40 {  
41         xo(x);
42         yo(y);
43         drawChar(pain, LM_TC_BSYM, size_, x, y, sym_->id);
44 }