]> git.lyx.org Git - lyx.git/blob - src/mathed/math_symbolinset.h
move things around
[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 #include "LString.h"
7
8 struct latexkeys;
9
10 // "normal" symbols that don't take limits and don't grow in displayed
11 // formulae
12
13 class MathSymbolInset : public MathDimInset {
14 public:
15         ///
16         explicit MathSymbolInset(latexkeys const *);
17         ///
18         MathInset * clone() const;
19         ///
20         void write(std::ostream &, bool fragile) const;
21         ///
22         void writeNormal(std::ostream &) const;
23         ///
24         void metrics(MathStyles st) const;
25         ///
26         void draw(Painter &, int x, int y) const;
27         ///
28         bool isRelOp() const;
29
30 private:
31         ///
32         latexkeys const * sym_;
33         /// cache for the symbol's onscreen string representation
34         mutable string ssym_;
35 };
36 #endif