]> git.lyx.org Git - lyx.git/blob - src/mathed/math_funcliminset.C
parse octave output as matrix if necessary
[lyx.git] / src / mathed / math_funcliminset.C
1 #include "math_funcliminset.h"
2 #include "support.h"
3 #include "support/LOstream.h"
4
5
6 using std::ostream;
7
8 MathFuncLimInset::MathFuncLimInset(string const & name)
9         : name_(name)
10 {}
11
12
13 MathInset * MathFuncLimInset::clone() const
14 {
15         return new MathFuncLimInset(*this);
16 }
17
18
19 bool MathFuncLimInset::isScriptable() const
20 {
21         return mi_.style == LM_ST_DISPLAY;
22 }
23
24
25 void MathFuncLimInset::write(MathWriteInfo & os) const
26 {
27         os << '\\' << name_ << ' ';
28 }
29
30
31 void MathFuncLimInset::writeNormal(ostream & os) const
32 {
33         os << "[" << name_ << "] ";
34 }
35
36
37 void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
38 {
39         mi_ = mi;
40         mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
41 }
42
43
44 void MathFuncLimInset::draw(Painter & pain, int x, int y) const
45 {  
46         drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
47 }