]> git.lyx.org Git - lyx.git/blob - src/mathed/math_bigopinset.h
move things around
[lyx.git] / src / mathed / math_bigopinset.h
1 // -*- C++ -*-
2 #ifndef MATH_BIGOPINSET_H
3 #define MATH_BIGOPINSET_H
4
5 // This inset is for things like "\sum" and "\int" that get displayed
6 // larger in displayed formulae and take limits
7
8 #include "math_diminset.h"
9 #include "LString.h"
10
11 struct latexkeys;
12
13 /// big operators
14 class MathBigopInset : public MathDimInset {
15 public:
16         ///
17         explicit MathBigopInset(latexkeys const *);
18         ///
19         MathInset * clone() const;
20         ///
21         void write(std::ostream &, bool fragile) const;
22         ///
23         void writeNormal(std::ostream &) const;
24         ///
25         void metrics(MathStyles st) const;
26         ///
27         void draw(Painter &, int x, int y) const;
28         ///
29         bool isScriptable() const { return true; }
30
31 private:
32         ///
33         latexkeys const * sym_;
34         ///
35         mutable string ssym_;
36 };
37 #endif