1 // -*- C++ -*-
2 /**
3  * \file InsetMathLefteqn.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11 
12 #ifndef MATH_LEFTEQNINSET_H
13 #define MATH_LEFTEQNINSET_H
14 
15 #include "InsetMathNest.h"
16 
17 
18 namespace lyx {
19 
20 
21 /// Support for LaTeX's \\lefteqn command
22 
23 class InsetMathLefteqn : public InsetMathNest {
24 public:
25 	///
26 	InsetMathLefteqn(Buffer * buf);
27 	///
28 	docstring name() const;
29 	///
30 	void metrics(MetricsInfo & mi, Dimension & dim) const;
31 	///
32 	void draw(PainterInfo & pi, int x, int y) const;
33 	///
34 	void infoize(odocstream & os) const;
35 	///
lyxCode()36 	InsetCode lyxCode() const { return MATH_LEFTEQN_CODE; }
37 
38 private:
39 	virtual Inset * clone() const;
40 };
41 
42 
43 } // namespace lyx
44 #endif
45