]> git.lyx.org Git - lyx.git/blob - src/mathed/math_charinset.h
fix #1073
[lyx.git] / src / mathed / math_charinset.h
1 // -*- C++ -*-
2 #ifndef MATH_CHARINSET_H
3 #define MATH_CHARINSET_H
4
5 #include "math_diminset.h"
6
7
8 /** The base character inset.
9  *  \author André Pönitz
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 class MathCharInset : public MathDimInset {
15 public:
16         ///
17         explicit MathCharInset(char c);
18         ///
19         MathInset * clone() const;
20         ///
21         void metrics(MetricsInfo & st) const;
22         ///
23         void draw(PainterInfo &, int x, int y) const;
24         ///
25         void metricsT(TextMetricsInfo const & st) const;
26         ///
27         void drawT(TextPainter &, int x, int y) const;
28         ///
29         void write(WriteStream & os) const;
30         ///
31         void normalize(NormalStream & ns) const;
32         ///
33         void octave(OctaveStream & os) const;
34         /// identifies Charinsets
35         MathCharInset const * asCharInset() const { return this; }
36         ///
37         char getChar() const { return char_; }
38         ///
39         bool isRelOp() const;
40         ///
41         bool match(MathInset const *) const;
42
43 private:
44         /// the character
45         char char_;
46 };
47 #endif