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;
14 /// get cursor position
15 void getPos(idx_type idx, pos_type pos, int & x, int & y) const;
17 void metrics(MathMetricsInfo & mi) const;
19 void draw(MathPainterInfo &, int x, int y) const;
21 void infoize(std::ostream & os) const;
23 void write(WriteStream & os) const;
25 void setWidth(string const & width);
27 void setPosition(string const & pos);
29 /// row corresponding to given position
30 int pos2row(pos_type pos) const;
38 mutable std::vector<MathXArray::Row> rows_;