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 &);
21 MathInset * clone() const;
22 /// identifies BoxInsets
23 MathBoxInset * asBoxInset() { return this; }
24 /// identifies BoxInsets
25 MathBoxInset const * asBoxInset() const { return this; }
29 void write(WriteStream & os) const;
31 void normalize(NormalStream &) const;
33 void draw(Painter &, int x, int y) const;
37 mutable MathMetricsInfo mi_;