2 #ifndef MATH_CHARINSET_H
3 #define MATH_CHARINSET_H
5 #include "math_diminset.h"
8 /** The base character inset.
11 * Full author contact details are available in file CREDITS
14 class MathCharInset : public MathDimInset {
17 explicit MathCharInset(char c);
19 MathInset * clone() const;
21 void metrics(MetricsInfo & st) const;
23 void draw(PainterInfo &, int x, int y) const;
25 void metricsT(TextMetricsInfo const & st) const;
27 void drawT(TextPainter &, int x, int y) const;
29 void write(WriteStream & os) const;
31 void normalize(NormalStream & ns) const;
33 void octave(OctaveStream & os) const;
34 /// identifies Charinsets
35 MathCharInset const * asCharInset() const { return this; }
37 char getChar() const { return char_; }
41 bool match(MathInset const *) const;