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
16 #include "InsetMathGrid.h"
22 class InsetMathXYMatrix : public InsetMathGrid {
25 InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0',
26 bool equal_spacing = false);
28 void metrics(MetricsInfo &, Dimension &) const;
30 void draw(PainterInfo & pi, int x, int y) const;
32 InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
34 virtual int colsep() const;
36 virtual int rowsep() const;
39 void write(WriteStream & os) const;
41 void infoize(odocstream & os) const;
43 void normalize(NormalStream &) const;
45 void maple(MapleStream &) const;
47 void validate(LaTeXFeatures & features) const;
49 InsetCode lyxCode() const { return MATH_XYMATRIX_CODE; }
51 void mathmlize(MathStream &) const;
53 void htmlize(HtmlStream &) const;
57 virtual Inset * clone() const;
58 /// extra spacing, may be empty