3 * \file math_charinset.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_CHARINSET_H
13 #define MATH_CHARINSET_H
15 #include "math_inset.h"
18 /// The base character inset.
19 class MathCharInset : public MathInset {
22 explicit MathCharInset(char c);
24 virtual std::auto_ptr<InsetBase> clone() const;
26 void metrics(MetricsInfo & mi, Dimension & dim) const;
28 void draw(PainterInfo & pi, int x, int y) const;
30 void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
32 void drawT(TextPainter &, int x, int y) const;
34 void write(WriteStream & os) const;
36 void normalize(NormalStream & ns) const;
38 void octave(OctaveStream & os) const;
39 /// identifies Charinsets
40 MathCharInset const * asCharInset() const { return this; }
42 char getChar() const { return char_; }
46 bool match(MathInset const *) const;