2 #ifndef MATH_CHARINSET_H
3 #define MATH_CHARINSET_H
5 #include "math_diminset.h"
11 /** The base character inset.
12 * \author André Pönitz
14 * Full author contact details are available in file CREDITS
17 class MathCharInset : public MathDimInset {
20 explicit MathCharInset(char c);
22 MathInset * clone() const;
24 void metrics(MathMetricsInfo & st) const;
26 void draw(MathPainterInfo &, int x, int y) const;
28 void metricsT(TextMetricsInfo const & st) const;
30 void drawT(TextPainter &, int x, int y) const;
32 void write(WriteStream & os) const;
34 void normalize(NormalStream & ns) const;
36 void octavize(OctaveStream & os) const;
37 /// identifies Charinsets
38 MathCharInset const * asCharInset() const { return this; }
40 char getChar() const { return char_; }
44 bool match(MathInset const *) const;