Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathDots.h
blobee3df2aeba7daf2432526ed1f9b4661a0ea1dbdf
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.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_DOTSINSET_H
13 #define MATH_DOTSINSET_H
15 #include "InsetMath.h"
18 namespace lyx {
20 class latexkeys;
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 void draw(PainterInfo & pi, int x, int y) const;
31 ///
32 docstring name() const;
33 /// request "external features"
34 void validate(LaTeXFeatures & features) const;
35 ///
36 InsetCode lyxCode() const { return MATH_DOTS_CODE; }
37 protected:
38 /// cache for the thing's height
39 mutable int dh_;
40 ///
41 latexkeys const * key_;
42 private:
43 virtual Inset * clone() const;
46 } // namespace lyx
48 #endif