A bit more re-organization.
[lyx.git] / src / mathed / InsetMathEnsureMath.h
blob1bad7c8fb6c4ec5a9da29a4a3069efaec2af1a45
1 // -*- C++ -*-
2 /**
3 * \file InsetMathEnsureMath.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
8 * \author Enrico Forestieri
10 * Full author contact details are available in file CREDITS.
13 #ifndef MATH_ENSUREMATHINSET_H
14 #define MATH_ENSUREMATHINSET_H
16 #include "InsetMathNest.h"
19 namespace lyx {
22 /// Inset for ensuring math mode
23 class InsetMathEnsureMath : public InsetMathNest {
24 public:
25 InsetMathEnsureMath(Buffer * buf);
26 ///
27 mode_type currentMode() const { return MATH_MODE; }
28 ///
29 void metrics(MetricsInfo & mi, Dimension & dim) const;
30 ///
31 void draw(PainterInfo & pi, int x, int y) const;
32 ///
33 void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
34 ///
35 void drawT(TextPainter & pi, int x, int y) const;
36 ///
37 void write(WriteStream & os) const;
38 ///
39 void infoize(odocstream & os) const;
40 ///
41 InsetCode lyxCode() const { return MATH_ENSUREMATH_CODE; }
42 private:
43 virtual Inset * clone() const;
47 } // namespace lyx
49 #endif