]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathMakebox.h
last commit was incomplete... not sure how I managed this..
[lyx.git] / src / mathed / InsetMathMakebox.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathMakebox.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Ling Li
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_MAKEBOXINSET_H
13 #define MATH_MAKEBOXINSET_H
14
15 #include "InsetMathNest.h"
16
17
18 namespace lyx {
19
20 /// Extra nesting: \\makebox.
21 // consolidate with InsetMathFrameBox?
22
23 class InsetMathMakebox : public InsetMathNest {
24 public:
25         ///
26         InsetMathMakebox();
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const;
29         ///
30         void draw(PainterInfo & pi, int x, int y) const;
31         ///
32         void write(WriteStream & os) const;
33         /// write normalized content
34         void normalize(NormalStream & ns) const;
35         ///
36         mode_type currentMode() const { return TEXT_MODE; }
37         ///
38         void infoize(odocstream & os) const;
39 private:
40         virtual Inset * clone() const;
41         /// width of '[' in current font
42         mutable int w_;
43 };
44
45
46
47 } // namespace lyx
48 #endif