]> git.lyx.org Git - lyx.git/blob - src/mathed/math_diminset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_diminset.h
1 // -*- C++ -*-
2 #ifndef MATH_DIMINSET_H
3 #define MATH_DIMINSET_H
4
5 #include "math_inset.h"
6 #include "dimension.h"
7
8
9 /// things that need the dimension cache
10
11 class MathDimInset : public MathInset {
12 public:
13         /// not sure whether the initialization is really necessary
14         MathDimInset() {}
15         ///
16         Dimension dimensions() const { return dim_; }
17         ///
18         void metricsT(TextMetricsInfo const &) const;
19         ///
20         void drawT(TextPainter & pain, int x, int y) const;
21
22 protected:
23         ///
24         mutable Dimension dim_;
25 };
26 #endif