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 draw(Painter &, int x, int baseline);
24 void write(std::ostream &, bool fragile) const;
26 void writeNormal(std::ostream &) const;
33 /// identifies Charinsets
34 bool isCharInset() const { return true; }
36 char getChar() const { return char_; }