]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPar.h
Improve the list of equations
[lyx.git] / src / mathed / InsetMathPar.h
index 29d62b98d403e8bd32835954590c2eb640171f55..0a178f439642951f2c6a46bde0a247f286c27b2c 100644 (file)
@@ -4,7 +4,7 @@
  * 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.
  */
@@ -21,22 +21,25 @@ namespace lyx {
 class InsetMathPar : public InsetMathHull {
 public:
        ///
-       InsetMathPar() {}
+       InsetMathPar(Buffer * buf) : InsetMathHull(buf) {}
        ///
-       InsetMathPar(MathData const & ar);
+       InsetMathPar(Buffer * buf, MathData const & ar);
        ///
        mode_type currentMode() const { return TEXT_MODE; }
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
        void infoize(odocstream & os) const;
        ///
        void write(WriteStream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_PAR_CODE; }
+
 private:
        ///
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };