]> git.lyx.org Git - lyx.git/blob - src/mathed/math_exintinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[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 #include <string>
22
23
24 // cell(0) is stuff before the 'd', cell(1) the stuff after
25 class MathExIntInset : public MathNestInset {
26 public:
27         ///
28         explicit MathExIntInset(std::string const & name_);
29         ///
30         void symbol(std::string const &);
31         ///
32         void metrics(MetricsInfo & mi, Dimension & dim) const;
33         ///
34         void draw(PainterInfo &, int x, int y) const;
35
36         ///
37         void normalize(NormalStream &) const;
38         ///
39         void maxima(MaximaStream &) const;
40         ///
41         void maple(MapleStream &) const;
42         ///
43         void mathematica(MathematicaStream &) const;
44         ///
45         void mathmlize(MathMLStream &) const;
46         ///
47         void write(WriteStream & os) const;
48 private:
49         virtual std::auto_ptr<InsetBase> doClone() const;
50         ///
51         bool hasScripts() const;
52
53         ///
54         std::string symbol_;
55 };
56
57 #endif