]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parboxinset.h
Standardise the header blurb in mathed.
[lyx.git] / src / mathed / math_parboxinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_parboxinset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_PARBOXINSET_H
13 #define MATH_PARBOXINSET_H
14
15
16 #include "math_textinset.h"
17
18 // implements support for \parbox
19
20 class MathParboxInset : public MathTextInset {
21 public:
22         ///
23         MathParboxInset();
24         ///
25         MathParboxInset * asParboxInset() { return this; }
26         ///
27         virtual std::auto_ptr<InsetBase> clone() const;
28         ///
29         mode_type currentMode() const { return TEXT_MODE; }
30         ///
31         void metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo &, int x, int y) const;
34         ///
35         void infoize(std::ostream & os) const;
36         ///
37         void write(WriteStream & os) const;
38         ///
39         void setWidth(string const & width);
40         ///
41         void setPosition(string const & pos);
42 private:
43         /// width on screen
44         int lyx_width_;
45         /// width for TeX
46         string tex_width_;
47         /// one of htb
48         char position_;
49 };
50
51 #endif