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