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