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