3 * \file InsetMathEnsureMath.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
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"
22 /// Inset for ensuring math mode
23 class InsetMathEnsureMath : public InsetMathNest {
25 InsetMathEnsureMath();
27 mode_type currentMode() const { return MATH_MODE; }
29 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 void draw(PainterInfo & pi, int x, int y) const;
33 void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
35 void drawT(TextPainter & pi, int x, int y) const;
37 void write(WriteStream & os) const;
39 void infoize(odocstream & os) const;
41 virtual Inset * clone() const;