]> git.lyx.org Git - lyx.git/blob - src/mathed/math_symbolinset.h
move width_/ascent_/descent_ cache into seperate ABC.
[lyx.git] / src / mathed / math_symbolinset.h
1 // -*- C++ -*-
2 #ifndef MATH_SYMBOLINSET_H
3 #define MATH_SYMBOLINSET_H
4
5 #include "math_diminset.h"
6
7 struct latexkeys;
8
9 /// big operators
10 class MathSymbolInset : public MathDimInset {
11 public:
12         ///
13         explicit MathSymbolInset(latexkeys const *);
14         ///
15         MathInset * clone() const;
16         ///
17         void write(std::ostream &, bool fragile) const;
18         ///
19         void writeNormal(std::ostream &) const;
20         ///
21         void metrics(MathStyles st);
22         ///
23         void draw(Painter &, int, int);
24         ///
25         bool isScriptable() const { return true; }
26
27 private:
28         ///
29         latexkeys const * sym_;
30         ///
31         string ssym_;
32         ///
33         MathTextCodes code_;
34 };
35 #endif