]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parboxinset.h
fixes for \xxalignat and old style font changes
[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         /// row corresponding to given position 
30         int pos2row(pos_type pos) const;
31         /// width on screen
32         int lyx_width_;
33         /// width for TeX
34         string tex_width_;
35         /// htb
36         char position_;
37         /// cached metrics
38         mutable std::vector<MathXArray::Row> rows_;
39 };
40
41 #endif