]> git.lyx.org Git - lyx.git/blob - src/mathed/math_exintinset.h
small up/down tweaking
[lyx.git] / src / mathed / math_exintinset.h
1 // -*- C++ -*-
2 #ifndef MATH_EXINTINSET_H
3 #define MATH_EXINTINSET_H
4
5 #ifdef __GNUG__
6 #pragma interface
7 #endif
8
9 // \int_l^u f(x) dx in one block (as opposed to 'f','(','x',')' or 'f','x')
10 // or \sum, \prod...  for interfacing external programs
11
12 #include "math_nestinset.h"
13
14 // cell(0) is stuff before the 'd', cell(1) the stuff after
15 class MathExIntInset : public MathNestInset {
16 public:
17         ///
18         explicit MathExIntInset(string const & name_);
19         ///
20         MathInset * clone() const;
21         ///
22         void symbol(string const &);
23         ///
24         void metrics(MathMetricsInfo & st) const;
25         ///
26         void draw(MathPainterInfo &, int x, int y) const;
27
28         ///
29         void normalize(NormalStream &) const;
30         ///
31         void maximize(MaximaStream &) const;
32         ///
33         void maplize(MapleStream &) const;
34         ///
35         void mathematicize(MathematicaStream &) const;
36         ///
37         void mathmlize(MathMLStream &) const;
38         ///
39         void write(WriteStream & os) const;
40 private:
41         ///
42         bool hasScripts() const;
43
44         ///
45         string symbol_;
46 };
47
48 #endif