3 * \file math_parboxinset.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_PARBOXINSET_H
13 #define MATH_PARBOXINSET_H
16 #include "math_textinset.h"
18 // implements support for \parbox
20 class MathParboxInset : public MathTextInset {
25 MathParboxInset * asParboxInset() { return this; }
27 virtual std::auto_ptr<InsetBase> clone() const;
29 mode_type currentMode() const { return TEXT_MODE; }
31 void metrics(MetricsInfo & mi, Dimension & dim) const;
33 void draw(PainterInfo &, int x, int y) const;
35 void infoize(std::ostream & os) const;
37 void write(WriteStream & os) const;
39 void setWidth(std::string const & width);
41 void setPosition(std::string const & pos);
46 std::string tex_width_;