]> git.lyx.org Git - lyx.git/blob - src/mathed/math_bigopinset.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_bigopinset.h
1 // -*- C++ -*-
2 #ifndef MATH_BIGOPINSET_H
3 #define MATH_BIGOPINSET_H
4
5 #include "math_updowninset.h"
6
7 /// big operators
8 class MathBigopInset : public MathUpDownInset {
9 public:
10         ///
11         MathBigopInset(string const &, int);
12         ///
13         MathInset * clone() const;
14         ///
15         void Write(std::ostream &, bool fragile) const;
16         ///
17         void WriteNormal(std::ostream &) const;
18         ///
19         void Metrics(MathStyles st, int asc = 0, int des = 0);
20         ///
21         void draw(Painter &, int, int);
22         ///
23         void limits(int);
24         ///
25         int limits() const;
26         /// Identifies BigopInsets
27         bool isBigopInset() const { return true; }
28 private:
29         ///
30         bool hasLimits() const;
31         ///
32         int sym_;
33         ///
34         string ssym_;
35         ///
36         MathTextCodes code_;
37         /// 1: \limits, -1: \nolimits, 0: use default
38         int limits_;
39         /// x offset for drawing the superscript
40         int dx0_;
41         /// x offset for drawing the subscript
42         int dx1_;
43         /// x offset for drawing the inner symbol
44         int dxx_;
45 };
46 #endif