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. 6 * 7 * \author André Pönitz 8 * 9 * Full author contact details are available in file CREDITS. 10 */ 11 12 #ifndef MATH_PARINSET_H 13 #define MATH_PARINSET_H 14 15 16 #include "InsetMathHull.h" 17 18 19 namespace lyx { 20 21 class InsetMathPar : public InsetMathHull { 22 public: 23 /// InsetMathPar(Buffer * buf)24 InsetMathPar(Buffer * buf) : InsetMathHull(buf) {} 25 /// 26 InsetMathPar(Buffer * buf, MathData const & ar); 27 /// currentMode()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 /// lyxCode()38 InsetCode lyxCode() const { return MATH_PAR_CODE; } 39 40 private: 41 /// 42 virtual Inset * clone() const; 43 }; 44 45 46 47 } // namespace lyx 48 #endif 49