]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parboxinset.h
fix #1073
[lyx.git] / src / mathed / math_parboxinset.h
1 #ifndef MATH_PARBOXINSET_H
2 #define MATH_PARBOXINSET_H
3
4
5 #include "math_textinset.h"
6
7 // implements support for \parbox
8
9 class MathParboxInset : public MathTextInset {
10 public:
11         ///
12         MathParboxInset();
13         ///
14         MathParboxInset * asParboxInset() { return this; }
15         ///
16         MathInset * clone() const;
17         ///
18         mode_type currentMode() const { return TEXT_MODE; }
19         ///
20         void metrics(MetricsInfo & mi) const;
21         ///
22         void draw(PainterInfo &, int x, int y) const;
23         ///
24         void infoize(std::ostream & os) const;
25         ///
26         void write(WriteStream & os) const;
27         ///
28         void setWidth(string const & width);
29         ///
30         void setPosition(string const & pos);
31 private:
32         /// width on screen
33         int lyx_width_;
34         /// width for TeX
35         string tex_width_;
36         /// one of htb
37         char position_;
38 };
39
40 #endif