2 #ifndef MATH_PARBOXINSET_H
3 #define MATH_PARBOXINSET_H
6 #include "math_textinset.h"
8 // implements support for \parbox
10 class MathParboxInset : public MathTextInset {
15 MathParboxInset * asParboxInset() { return this; }
17 virtual std::auto_ptr<InsetBase> clone() const;
19 mode_type currentMode() const { return TEXT_MODE; }
21 void metrics(MetricsInfo & mi, Dimension & dim) const;
23 void draw(PainterInfo &, int x, int y) const;
25 void infoize(std::ostream & os) const;
27 void write(WriteStream & os) const;
29 void setWidth(string const & width);
31 void setPosition(string const & pos);