]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXYMatrix.h
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
[lyx.git] / src / mathed / InsetMathXYMatrix.h
index 5c7f1b2a3a7301b92a275b5a3d724ecc08dffb5a..68de02813ae9a0fcb6070f535f32fefe10dd720f 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.
  */
 #ifndef MATH_XYMATRIX_H
 #define MATH_XYMATRIX_H
 
-#include "Length.h"
 #include "InsetMathGrid.h"
 
+#include "support/Length.h"
+
 
 namespace lyx {
 
@@ -22,9 +23,12 @@ namespace lyx {
 class InsetMathXYMatrix : public InsetMathGrid {
 public:
        ///
-       InsetMathXYMatrix(Length const & = Length(), char c = '\0');
+       InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0',
+               bool equal_spacing = false);
+       ///
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
        ///
@@ -32,8 +36,6 @@ public:
        ///
        virtual int rowsep() const;
 
-       ///
-       void normalize();
        ///
        void write(WriteStream & os) const;
        ///
@@ -44,13 +46,22 @@ public:
        void maple(MapleStream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       InsetCode lyxCode() const { return MATH_XYMATRIX_CODE; }
+       ///
+       void mathmlize(MathStream &) const;
+       ///
+       void htmlize(HtmlStream &) const;
+
 private:
        ///
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        /// extra spacing, may be empty
        Length spacing_;
        ///
        char spacing_code_;
+       ///
+       bool equal_spacing_;
 };