]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parboxinset.h
preliminary work for \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         ///
15         void metrics(MathMetricsInfo & mi) const;
16         ///
17         void draw(MathPainterInfo &, int x, int y) const;
18         ///
19         void infoize(std::ostream & os) const;
20         ///
21         void write(WriteStream & os) const;
22         ///
23         void setWidth(string const & width);
24         ///
25         void setPosition(string const & pos);
26 private:
27         ///
28         void rebreak();
29         /// width on screen
30         int lyx_width_;
31         /// width for TeX
32         string tex_width_;
33         ///
34         char position_;
35 };
36
37 #endif