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