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