2 #ifndef MATH_CHARINSET_H
3 #define MATH_CHARINSET_H
5 #include "math_inset.h"
11 /** The base character inset.
15 class MathCharInset : public MathInset {
18 explicit MathCharInset(char c);
20 MathCharInset(char c, MathTextCodes t);
22 MathInset * clone() const;
24 MathTextCodes nativeCode(char c) const;
26 void metrics(MathStyles st) const;
28 void draw(Painter &, int x, int y) const;
30 void write(std::ostream &, bool fragile) const;
32 void writeNormal(std::ostream &) const;
39 /// identifies Charinsets
40 bool isCharInset() const { return true; }
42 char getChar() const { return char_; }
44 MathTextCodes code() const { return code_; }
48 void handleFont(MathTextCodes t);