3 * \file InsetMathXYMatrix.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_XYMATRIX_H
13 #define MATH_XYMATRIX_H
15 #include "InsetMathGrid.h"
17 #include "support/Length.h"
23 class InsetMathXYMatrix : public InsetMathGrid {
26 InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0',
27 bool equal_spacing = false);
29 void metrics(MetricsInfo &, Dimension &) const;
31 void draw(PainterInfo & pi, int x, int y) const;
33 InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
35 virtual int colsep() const;
37 virtual int rowsep() const;
40 void write(WriteStream & os) const;
42 void infoize(odocstream & os) const;
44 void normalize(NormalStream &) const;
46 void maple(MapleStream &) const;
48 void validate(LaTeXFeatures & features) const;
50 InsetCode lyxCode() const { return MATH_XYMATRIX_CODE; }
52 void mathmlize(MathStream &) const;
54 void htmlize(HtmlStream &) const;
58 virtual Inset * clone() const;
59 /// extra spacing, may be empty