]> git.lyx.org Git - lyx.git/blob - src/mathed/math_mboxinset.h
* insettabular.[Ch]: remove remains of the 'update' mechanism,
[lyx.git] / src / mathed / math_mboxinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_mboxinset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_MBOXINSET_H
13 #define MATH_MBOXINSET_H
14
15 #include "math_diminset.h"
16 #include "lyxtext.h"
17
18 class BufferView;
19
20
21 // not yet a substitute for the real text inset...
22
23 class MathMBoxInset : public MathDimInset {
24 public:
25         ///
26         MathMBoxInset(BufferView & bv);
27         ///
28         std::auto_ptr<InsetBase> clone() const;
29         /// this stores metrics information in cache_
30         void metrics(MetricsInfo & mi, Dimension & dim) const;
31         /// draw according to cached metrics
32         void draw(PainterInfo &, int x, int y) const;
33         ///
34         void priv_dispatch(LCursor & cur, FuncRequest const & cmd);
35
36         ///
37         void write(WriteStream & os) const;
38
39         ///
40         LyXText * getText(int) const;   
41         ///
42         void getCursorPos(CursorSlice const & cur, int & x, int & y) const;
43 protected:
44         /// 
45         mutable LyXText text_;
46         ///
47         BufferView * const bv_;
48 };
49
50 #endif