]> git.lyx.org Git - lyx.git/blob - src/mathed/math_limitopinset.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_limitopinset.C
1 #include "math_limitopinset.h"
2 #include "math_support.h"
3 #include "math_mathmlstream.h"
4 #include "math_symbolinset.h"
5 #include "debug.h"
6
7
8 MathLimitOpInset::MathLimitOpInset(MathScriptInset const & scripts,
9                 MathArray const & core)
10         : int_(new MathSymbolInset("int")),
11                 scripts_(scripts), core_(core)
12 {}
13
14
15 MathInset * MathLimitOpInset::clone() const
16 {
17         return new MathLimitOpInset(*this);
18 }
19
20
21 void MathLimitOpInset::write(WriteStream & os) const
22 {
23         scripts_.write2(int_.nucleus(), os);
24         os << core_ << "d" << diff_;
25 }
26
27
28 void MathLimitOpInset::normalize(NormalStream &) const
29 {
30         //os << "[int " << scripts_ << ' ' << core_ << ' ' << diff_ << ']'
31 }
32
33
34 void MathLimitOpInset::metrics(MathMetricsInfo const &) const
35 {
36         lyxerr << "should not happen\n";
37 }
38
39
40 void MathLimitOpInset::draw(Painter &, int, int) const
41 {  
42         lyxerr << "should not happen\n";
43 }
44
45
46 void MathLimitOpInset::maplize(MapleStream &) const
47 {
48         //os << name_ << '(' << cell(0) << ')';
49 }
50
51 void MathLimitOpInset::mathmlize(MathMLStream &) const
52 {
53         //os << name_ << '(' << cell(0) << ')';
54 }