]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDim.C
make it compile again (hopefully)
[lyx.git] / src / mathed / InsetMathDim.C
1 /**
2  * \file InsetMathDim.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "InsetMathDim.h"
14
15 #include "BufferView.h"
16 #include "coordcache.h"
17 #include "debug.h"
18 #include "metricsinfo.h"
19
20
21 InsetMathDim::InsetMathDim()
22 {}
23
24
25 int InsetMathDim::ascent() const
26 {
27         return dim_.asc;
28 }
29
30
31 int InsetMathDim::descent() const
32 {
33         return dim_.des;
34 }
35
36
37 int InsetMathDim::width() const
38 {
39         return dim_.wid;
40 }
41
42
43 void InsetMathDim::setPosCache(PainterInfo const & pi, int x, int y) const
44 {
45         //lyxerr << "InsetMathDim: cache to " << x << " " << y << std::endl;
46         pi.base.bv->coordCache().insets().add(this, x, y);
47 }