]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDots.h
Fix RTL inset painting.
[lyx.git] / src / mathed / InsetMathDots.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathDots.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_DOTSINSET_H
13 #define MATH_DOTSINSET_H
14
15 #include "InsetMath.h"
16
17
18 namespace lyx {
19
20 class latexkeys;
21
22 /// The different kinds of ellipsis
23 class InsetMathDots : public InsetMath {
24 public:
25         ///
26         explicit InsetMathDots(latexkeys const * l);
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const;
29         ///
30         Dimension const dimension(BufferView const &) const { return dim_; };
31         ///
32         void draw(PainterInfo & pi, int x, int y) const;
33         ///
34         docstring name() const;
35 protected:
36         /// cache for the thing's height
37         mutable int dh_;
38         ///
39         latexkeys const * key_;
40 private:
41         virtual Inset * clone() const;
42         ///
43         mutable Dimension dim_;
44 };
45
46 } // namespace lyx
47
48 #endif