]> git.lyx.org Git - lyx.git/blob - src/mathed/math_exintinset.h
improved function function argument detection for math-extern:
[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) dx in one block (as opposed to 'f','(','x',')' or 'f','x')
6 // or \sum, \prod...  for interfacing external programs
7
8 #include "math_scriptinset.h"
9
10 // cell(0) is stuff before the 'd', cell(1) the stuff after
11 class MathExIntInset : public MathNestInset {
12 public:
13         ///
14         explicit MathExIntInset(string const & name_);
15         ///
16         MathInset * clone() const;
17         ///
18         void scripts(MathAtom const &);
19         ///
20         MathAtom & scripts();
21         ///
22         void symbol(string const &);
23         ///
24         void metrics(MathMetricsInfo const & st) const;
25         ///
26         void draw(Painter &, int x, int y) const;
27
28         ///
29         void normalize(NormalStream &) const;
30         ///
31         void maplize(MapleStream &) const;
32         ///
33         void mathmlize(MathMLStream &) const;
34         ///
35         void write(WriteStream & os) const;
36 private:
37         ///
38         bool hasScripts() const;
39
40         ///
41         string symbol_;
42         ///
43         MathAtom scripts_;
44 };
45
46 #endif