]> git.lyx.org Git - lyx.git/blob - src/mathed/math_exintinset.h
math-extern: enable handling of simple sums
[lyx.git] / src / mathed / math_exintinset.h
1 // -*- C++ -*-
2 #ifndef MATH_EXINTINSET_H
3 #define MATH_EXINTINSET_H
4
5 // /\int_l^u f(x) dxin one block (as opposed to 'f','(','x',')' or 'f','x')
6 // for interfacing external programs
7
8 #include "math_scriptinset.h"
9
10 class MathExIntInset : public MathInset {
11 public:
12         ///
13         explicit MathExIntInset(string const & name_);
14         ///
15         MathInset * clone() const;
16         ///
17         void index(MathArray const &);
18         ///
19         void core(MathArray const &);
20         ///
21         void scripts(MathAtom const &);
22         ///
23         MathAtom & scripts();
24         ///
25         void symbol(string const &);
26         ///
27         void metrics(MathMetricsInfo const & st) const;
28         ///
29         void draw(Painter &, int x, int y) const;
30
31         ///
32         void normalize(NormalStream &) const;
33         ///
34         void maplize(MapleStream &) const;
35         ///
36         void mathmlize(MathMLStream &) const;
37         ///
38         void write(WriteStream & os) const;
39 private:
40         ///
41         bool hasScripts() const;
42
43         ///
44         string symbol_;
45         ///
46         MathAtom scripts_;
47         ///
48         MathArray core_;
49         ///
50         MathArray index_;
51 };
52
53 #endif