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 MathCharInset(char c, MathTextCodes t);
20 MathInset * clone() const;
22 void metrics(MathStyles st) const;
24 void draw(Painter &, int x, int y) const;
26 void write(std::ostream &, bool fragile) const;
28 void writeNormal(std::ostream &) const;
35 /// identifies Charinsets
36 bool isCharInset() const { return true; }
38 char getChar() const { return char_; }