]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBox.h
c27aa3d0a26e05fd15ad5c025bf50afcf6fb9a56
[lyx.git] / src / mathed / InsetMathBox.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathBox.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_BOXINSET_H
13 #define MATH_BOXINSET_H
14
15 #include "InsetMathNest.h"
16
17 #include <string>
18
19
20 namespace lyx {
21
22
23 class Font;
24
25 /// Support for \\mbox
26
27 class InsetMathBox : public InsetMathNest {
28 public:
29         ///
30         explicit InsetMathBox(docstring const & name);
31         ///
32         mode_type currentMode() const { return TEXT_MODE; }
33         ///
34         void metrics(MetricsInfo & mi, Dimension & dim) const;
35         ///
36         void draw(PainterInfo & pi, int x, int y) const;
37         ///
38         void write(WriteStream & os) const;
39         ///
40         void normalize(NormalStream & ns) const;
41         ///
42         void infoize(odocstream & os) const;
43
44 private:
45         virtual Inset * clone() const;
46         ///
47         docstring name_;
48 };
49
50
51
52 } // namespace lyx
53
54 #endif