2 #ifndef MATH_SPECIALCHARINSET_H
3 #define MATH_SPECIALCHARINSET_H
5 #include "math_inset.h"
11 /** An inset for characters like {, #, and $ that need to be escaped
12 when written out, but can be inserted by a single keystroke
16 class MathSpecialCharInset : public MathInset {
19 explicit MathSpecialCharInset(char c);
21 MathInset * clone() const;
23 void metrics(MathMetricsInfo const & st) const;
25 void draw(Painter &, int x, int y) const;
27 void write(WriteStream & os) const;
29 void normalize(NormalStream &) const;
41 mutable LyXFont font_;