* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
class InsetMathLefteqn : public InsetMathNest {
public:
///
- InsetMathLefteqn();
+ explicit InsetMathLefteqn(Buffer * buf);
///
- docstring name() const;
+ docstring name() const override;
///
- bool metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
+ ///
+ InsetCode lyxCode() const override { return MATH_LEFTEQN_CODE; }
+
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
};