2 #ifndef MATH_BOXINSET_H
3 #define MATH_BOXINSET_H
5 #include "math_nestinset.h"
11 /// Support for \\mbox
13 class MathBoxInset : public MathNestInset {
16 explicit MathBoxInset(string const & name);
18 virtual std::auto_ptr<InsetBase> clone() const;
20 mode_type currentMode() const { return TEXT_MODE; }
22 void metrics(MetricsInfo & mi, Dimension & dim) const;
24 void draw(PainterInfo & pi, int x, int y) const;
26 void write(WriteStream & os) const;
28 void normalize(NormalStream & ns) const;
30 void infoize(std::ostream & os) const;