]> git.lyx.org Git - lyx.git/blob - src/mathed/math_boxinset.h
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_boxinset.h
1 // -*- C++ -*-
2 #ifndef MATH_BOXINSET_H
3 #define MATH_BOXINSET_H
4
5 #include "math_diminset.h"
6 #include "LString.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 class InsetText;
13 class BufferView;
14 class Buffer;
15 class LyXFont;
16
17 /// Support for \\mbox
18
19 class MathBoxInset : public MathDimInset {
20 public:
21         ///
22         explicit MathBoxInset(string const &);
23         ///
24         MathBoxInset(MathBoxInset const &);
25         ///
26         ~MathBoxInset();
27         ///
28         MathInset * clone() const;
29         ///
30         void draw(Painter &, int x, int y) const;
31         ///
32         void write(MathWriteInfo & os) const;
33         ///
34         void writeNormal(std::ostream &) const;
35         ///
36         void metrics(MathMetricsInfo const & st) const;
37         /// identifies BoxInsets
38         MathBoxInset * asBoxInset() { return this; }
39
40 private:
41         /// unimplemented
42         void operator=(MathBoxInset const &);
43
44         ///
45         string name_;
46         ///
47         InsetText * text_;
48         ///
49         mutable Buffer * buffer_;       
50 };
51 #endif