]> git.lyx.org Git - lyx.git/blob - src/mathed/math_boxinset.h
split inset -> inset + updatableinset
[lyx.git] / src / mathed / math_boxinset.h
1 // -*- C++ -*-
2 #ifndef MATH_BOXINSET_H
3 #define MATH_BOXINSET_H
4
5 #include "math_nestinset.h"
6 #include "LString.h"
7
8
9 class LyXFont;
10
11 /// Support for \\mbox
12
13 class MathBoxInset : public MathNestInset {
14 public:
15         ///
16         explicit MathBoxInset(string const & name);
17         ///
18         MathInset * clone() const;
19         ///
20         mode_type currentMode() const { return TEXT_MODE; }
21         ///
22         void metrics(MathMetricsInfo & mi) const;
23         ///
24         void draw(MathPainterInfo & pi, int x, int y) const;
25         ///
26         void write(WriteStream & os) const;
27         ///
28         void normalize(NormalStream & ns) const;
29         ///
30         void infoize(std::ostream & os) const;
31
32 private:
33         ///
34         string name_;
35 };
36
37
38 #endif