]> git.lyx.org Git - lyx.git/blob - src/insets/inset.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / inset.C
1 /**
2  * \file inset.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Alejandro Aguilar Sierra
7  * \author Jürgen Vigna
8  * \author Lars Gullik Bjønnes
9  * \author Matthias Ettrich
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #include <config.h>
15
16 #include "inset.h"
17
18 #include "BufferView.h"
19 #include "debug.h"
20 #include "gettext.h"
21 #include "lyxtext.h"
22 #include "metricsinfo.h"
23 #include "coordcache.h"
24
25
26 namespace lyx {
27
28 using std::string;
29
30
31 InsetOld::InsetOld()
32 {}
33
34
35 InsetOld::InsetOld(InsetOld const & in)
36         : InsetBase(in), name_(in.name_)
37 {}
38
39
40 void InsetOld::setPosCache(PainterInfo const & pi, int x, int y) const
41 {
42         //lyxerr << "InsetOld:: position cache to " << x << " " << y << std::endl;
43         pi.base.bv->coordCache().insets().add(this, x, y);
44 }
45
46
47 } // namespace lyx