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);
30 /// moves cursor up or down
31 bool idxUpDown(idx_type &, pos_type & pos, bool up) const;
33 /// number of rows on screen
34 int screenrows() const;
35 /// row corresponding to given position
36 int pos2row(pos_type pos) const;
44 mutable std::vector<MathXArray::Row> rows_;