]> git.lyx.org Git - lyx.git/blob - src/mathed/math_exintinset.h
Standardise the header blurb in mathed.
[lyx.git] / src / mathed / math_exintinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_exintinset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_EXINTINSET_H
13 #define MATH_EXINTINSET_H
14
15
16 // \int_l^u f(x) dx in one block (as opposed to 'f','(','x',')' or 'f','x')
17 // or \sum, \prod...  for interfacing external programs
18
19 #include "math_nestinset.h"
20
21 // cell(0) is stuff before the 'd', cell(1) the stuff after
22 class MathExIntInset : public MathNestInset {
23 public:
24         ///
25         explicit MathExIntInset(string const & name_);
26         ///
27         virtual std::auto_ptr<InsetBase> clone() const;
28         ///
29         void symbol(string const &);
30         ///
31         void metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo &, int x, int y) const;
34
35         ///
36         void normalize(NormalStream &) const;
37         ///
38         void maxima(MaximaStream &) const;
39         ///
40         void maple(MapleStream &) const;
41         ///
42         void mathematica(MathematicaStream &) const;
43         ///
44         void mathmlize(MathMLStream &) const;
45         ///
46         void write(WriteStream & os) const;
47 private:
48         ///
49         bool hasScripts() const;
50
51         ///
52         string symbol_;
53 };
54
55 #endif