A bit more re-organization.
[lyx.git] / src / mathed / InsetMathXYMatrix.h
blobee20149d30d31f29ea61ca2ac8713111698ef685
1 // -*- C++ -*-
2 /**
3 * \file InsetMathXYMatrix.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_XYMATRIX_H
13 #define MATH_XYMATRIX_H
15 #include "Length.h"
16 #include "InsetMathGrid.h"
19 namespace lyx {
22 class InsetMathXYMatrix : public InsetMathGrid {
23 public:
24 ///
25 InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0');
26 ///
27 void metrics(MetricsInfo &, Dimension &) const;
28 ///
29 InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
30 ///
31 virtual int colsep() const;
32 ///
33 virtual int rowsep() const;
35 ///
36 void normalize();
37 ///
38 void write(WriteStream & os) const;
39 ///
40 void infoize(odocstream & os) const;
41 ///
42 void normalize(NormalStream &) const;
43 ///
44 void maple(MapleStream &) const;
45 ///
46 void validate(LaTeXFeatures & features) const;
47 ///
48 InsetCode lyxCode() const { return MATH_XYMATRIX_CODE; }
50 private:
51 ///
52 virtual Inset * clone() const;
53 /// extra spacing, may be empty
54 Length spacing_;
55 ///
56 char spacing_code_;
61 } // namespace lyx
62 #endif