]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDim.h
do not create invalid .lyx files when importing \i{}, \j{}, \l{} or \L{}.
[lyx.git] / src / mathed / InsetMathDim.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathDim.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_DIMINSET_H
13 #define MATH_DIMINSET_H
14
15 #include "InsetMath.h"
16
17 namespace lyx {
18
19 class PainterInfo;
20
21
22 /// things that need the dimension cache
23 class InsetMathDim : public InsetMath {
24 public:
25         ///
26         InsetMathDim();
27
28         ///
29         Dimension dimensions() const { return dim_; }
30         ///
31         int ascent() const;
32         ///
33         int descent() const;
34         ///
35         int width() const;
36
37         ///
38         void setPosCache(PainterInfo const & pi, int x, int y) const;
39 };
40
41
42 } // namespace lyx
43
44 #endif