* 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.
*/
#include "InsetMathHull.h"
+
+namespace lyx {
+
class InsetMathPar : public InsetMathHull {
public:
///
- InsetMathPar() {}
+ explicit InsetMathPar(Buffer * buf) : InsetMathHull(buf) {}
+ ///
+ InsetMathPar(Buffer * buf, MathData const & ar);
///
- InsetMathPar(MathArray const & ar);
+ mode_type currentMode() const override { return TEXT_MODE; }
///
- mode_type currentMode() const { return TEXT_MODE; }
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void infoize(odocstream & os) const override;
///
- void infoize(std::ostream & os) const;
+ void write(TeXMathStream & os) const override;
///
- void write(WriteStream & os) const;
+ InsetCode lyxCode() const override { return MATH_PAR_CODE; }
+
private:
///
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
};
+
+
+} // namespace lyx
#endif