]> git.lyx.org Git - lyx.git/blob - src/mathed/math_funcliminset.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_funcliminset.C
1 #include <config.h>
2
3 #include "math_funcliminset.h"
4 #include "math_mathmlstream.h"
5 #include "math_streamstr.h"
6 #include "math_support.h"
7
8
9 MathFuncLimInset::MathFuncLimInset(string const & name)
10         : name_(name)
11 {}
12
13
14 MathInset * MathFuncLimInset::clone() const
15 {
16         return new MathFuncLimInset(*this);
17 }
18
19
20 bool MathFuncLimInset::isScriptable() const
21 {
22         //return mi_.style == LM_ST_DISPLAY;
23         return true;
24 }
25
26
27 void MathFuncLimInset::write(WriteStream & os) const
28 {
29         os << '\\' << name_ << ' ';
30 }
31
32
33 void MathFuncLimInset::normalize(NormalStream & os) const
34 {
35         os << "[funclim " << name_ << ']';
36 }
37
38
39 void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
40 {
41         whichFont(font_, LM_TC_TEXTRM, mi);
42         mathed_string_dim(font_, name_, ascent_, descent_, width_);
43 }
44
45
46 void MathFuncLimInset::draw(Painter & pain, int x, int y) const
47 {
48         drawStr(pain, font_, x, y, name_);
49 }