2 #ifndef MATH_BOXINSET_H
3 #define MATH_BOXINSET_H
5 #include "math_gridinset.h"
14 /// Support for \\mbox
16 class MathBoxInset : public MathGridInset {
19 explicit MathBoxInset(string const & name);
21 MathInset * clone() const;
23 void metrics(MathMetricsInfo & mi) const;
25 void draw(MathPainterInfo & pi, int x, int y) const;
26 /// identifies BoxInsets
27 MathBoxInset * asBoxInset() { return this; }
28 /// identifies BoxInsets
29 MathBoxInset const * asBoxInset() const { return this; }
33 void write(WriteStream & os) const;
35 void normalize(NormalStream & ns) const;
39 mutable MathMetricsInfo mi_;