]> git.lyx.org Git - lyx.git/blob - src/mathed/math_makeboxinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_makeboxinset.h
1 // -*- C++ -*-
2 #ifndef MATH_MAKEBOXINSET_H
3 #define MATH_MAKEBOXINSET_H
4
5 #include "math_nestinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Extra nesting: \\makebox.
12  *  \author Ling Li
13  *
14  *  Full author contact details are available in file CREDITS
15  */
16
17 // consolidate with MathFrameboxInset?
18
19 class MathMakeboxInset : public MathNestInset {
20 public:
21         ///
22         MathMakeboxInset();
23         ///
24         virtual std::auto_ptr<InsetBase> clone() const;
25         ///
26         void metrics(MetricsInfo & mi, Dimension & dim) const;
27         ///
28         void draw(PainterInfo & pi, int x, int y) const;
29         ///
30         void write(WriteStream & os) const;
31         /// write normalized content
32         void normalize(NormalStream & ns) const;
33         ///
34         mode_type currentMode() const { return TEXT_MODE; }
35 private:
36         /// width of '[' in current font
37         mutable int w_;
38 };
39
40 #endif