Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathStackrel.h
blobb27f1cd8b7487e817c59e6b821702df204ec3082
1 // -*- C++ -*-
2 /**
3 * \file InsetMathStackrel.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_STACKRELINSET_H
13 #define MATH_STACKRELINSET_H
15 #include "InsetMathFrac.h"
18 namespace lyx {
21 /** Stackrel objects
22 * \author André Pönitz
24 * Full author contact details are available in file CREDITS.
26 class InsetMathStackrel : public InsetMathFracBase {
27 public:
28 ///
29 InsetMathStackrel();
30 ///
31 void metrics(MetricsInfo & mi, Dimension & dim) const;
32 ///
33 void draw(PainterInfo & pi, int x, int y) const;
35 ///
36 void write(WriteStream & os) const;
37 ///
38 void normalize(NormalStream &) const;
39 ///
40 InsetCode lyxCode() const { return MATH_STACKREL_CODE; }
42 private:
43 virtual Inset * clone() const;
48 } // namespace lyx
49 #endif