]> git.lyx.org Git - lyx.git/blob - src/mathed/math_boxinset.h
0dfc8e44760caa4c344ca52eca9ec80bab018c9d
[lyx.git] / src / mathed / math_boxinset.h
1 // -*- C++ -*-
2 #ifndef MATH_BOXINSET_H
3 #define MATH_BOXINSET_H
4
5 #include "math_gridinset.h"
6 #include "LString.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 class LyXFont;
13
14 /// Support for \\mbox
15
16 class MathBoxInset : public MathGridInset {
17 public:
18         ///
19         explicit MathBoxInset(string const &);
20         ///
21         MathInset * clone() const;
22         /// identifies BoxInsets
23         MathBoxInset * asBoxInset() { return this; }
24         /// identifies BoxInsets
25         MathBoxInset const * asBoxInset() const { return this; }
26         ///
27         void rebreak();
28         ///
29         void write(WriteStream & os) const;
30         ///
31         void normalize(NormalStream &) const;
32         ///
33         void draw(MathPainterInfo &, int x, int y) const;
34
35 private:
36         ///
37         mutable MathMetricsInfo mi_;
38         ///
39         string name_;
40 };
41 #endif