1 #ifndef MATH_PARBOXINSET_H
2 #define MATH_PARBOXINSET_H
4 #include "math_nestinset.h"
6 class MathParboxInset : public MathNestInset {
11 MathParboxInset * asParboxInset() { return this; }
13 MathInset * clone() const;
15 mode_type currentMode() const { return TEXT_MODE; }
16 /// get cursor position
17 void getPos(idx_type idx, pos_type pos, int & x, int & y) const;
19 void metrics(MathMetricsInfo & mi) const;
21 void draw(MathPainterInfo &, int x, int y) const;
23 void infoize(std::ostream & os) const;
25 void write(WriteStream & os) const;
27 void setWidth(string const & width);
29 void setPosition(string const & pos);
31 /// row corresponding to given position
32 int pos2row(pos_type pos) const;
40 mutable std::vector<MathXArray::Row> rows_;