]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parboxinset.h
more work on \parbox support
[lyx.git] / src / mathed / math_parboxinset.h
1 #ifndef MATH_PARBOXINSET_H
2 #define MATH_PARBOXINSET_H
3
4 #include "math_nestinset.h"
5
6 class MathParboxInset : public MathNestInset {
7 public:
8         ///
9         MathParboxInset();
10         ///
11         MathParboxInset * asParboxInset() { return this; }
12         ///
13         MathInset * clone() const;
14         /// get cursor position
15         void getPos(idx_type idx, pos_type pos, int & x, int & y) const;
16         ///
17         void metrics(MathMetricsInfo & mi) const;
18         ///
19         void draw(MathPainterInfo &, int x, int y) const;
20         ///
21         void infoize(std::ostream & os) const;
22         ///
23         void write(WriteStream & os) const;
24         ///
25         void setWidth(string const & width);
26         ///
27         void setPosition(string const & pos);
28 private:
29         /// width on screen
30         int lyx_width_;
31         /// width for TeX
32         string tex_width_;
33         /// htb
34         char position_;
35         /// cached metrics
36         mutable std::vector<MathXArray::Row> rows_;
37 };
38
39 #endif