Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathPar.h
blob05d2dabdb09a2aeb859378f96fcd014d38bb0e93
1 // -*- C++ -*-
2 /**
3 * \file InsetMathPar.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_PARINSET_H
13 #define MATH_PARINSET_H
16 #include "InsetMathHull.h"
19 namespace lyx {
21 class InsetMathPar : public InsetMathHull {
22 public:
23 ///
24 InsetMathPar() {}
25 ///
26 InsetMathPar(MathData const & ar);
27 ///
28 mode_type currentMode() const { return TEXT_MODE; }
29 ///
30 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 ///
32 void draw(PainterInfo &, int x, int y) const;
33 ///
34 void infoize(odocstream & os) const;
35 ///
36 void write(WriteStream & os) const;
37 ///
38 InsetCode lyxCode() const { return MATH_PAR_CODE; }
40 private:
41 ///
42 virtual Inset * clone() const;
47 } // namespace lyx
48 #endif