]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathAMSArray.h
Add a comment and update notes.
[lyx.git] / src / mathed / InsetMathAMSArray.h
index b5f7255b371c81c3e82bd6a681a92e23d63dfcbc..631d7db9a4995a05ee4489c78e6d0b50f36c2d2f 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,9 +21,9 @@ namespace lyx {
 class InsetMathAMSArray : public InsetMathGrid {
 public:
        ///
-       InsetMathAMSArray(docstring const & name, int m, int n);
+       InsetMathAMSArray(Buffer * buf, docstring const &, int m, int n);
        ///
-       InsetMathAMSArray(docstring const & name);
+       InsetMathAMSArray(Buffer * buf, docstring const &);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -34,7 +34,7 @@ public:
        InsetMathAMSArray const * asAMSArrayInset() const { return this; }
 
        ///
-       bool getStatus(LCursor & cur, FuncRequest const & cmd,
+       bool getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const;
        ///
        void write(WriteStream & os) const;
@@ -42,15 +42,19 @@ public:
        void infoize(odocstream & os) const;
        ///
        void normalize(NormalStream &) const;
+       // Don't need mathmlize as it is handled by InsetMathMatrix,
+       // after being extracted in MathExtern.
+       // void mathmlize(MathStream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
-private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       ///
+       InsetCode lyxCode() const { return MATH_AMSARRAY_CODE; }
        ///
        char const * name_left() const;
        ///
        char const * name_right() const;
-
+private:
+       virtual Inset * clone() const;
        ///
        docstring name_;
 };