]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathXYMatrix.h
Support all xymatrix arguments
[lyx.git] / src / mathed / InsetMathXYMatrix.h
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.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_XYMATRIX_H
13 #define MATH_XYMATRIX_H
14
15 #include "lyxlength.h"
16 #include "InsetMathGrid.h"
17
18
19 namespace lyx {
20
21
22 class InsetMathXYMatrix : public InsetMathGrid {
23 public:
24         ///
25         InsetMathXYMatrix(LyXLength const & = LyXLength(), 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;
34
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 private:
48         ///
49         virtual std::auto_ptr<InsetBase> doClone() const;
50         /// extra spacing, may be empty
51         LyXLength spacing_;
52         ///
53         char spacing_code_;
54 };
55
56
57
58 } // namespace lyx
59 #endif