]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathXYMatrix.h
Revert "Fix a number of signedness warnings"
[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 "InsetMathGrid.h"
16
17 #include "support/Length.h"
18
19
20 namespace lyx {
21
22
23 class InsetMathXYMatrix : public InsetMathGrid {
24 public:
25         ///
26         InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0',
27                 bool equal_spacing = false);
28         ///
29         void metrics(MetricsInfo &, Dimension &) const override;
30         ///
31         void draw(PainterInfo & pi, int x, int y) const override;
32         ///
33         InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
34         ///
35         int colsep() const override;
36         ///
37         int rowsep() const override;
38
39         ///
40         void write(WriteStream & os) const override;
41         ///
42         void infoize(odocstream & os) const override;
43         ///
44         void normalize(NormalStream &) const override;
45         ///
46         void maple(MapleStream &) const override;
47         ///
48         void validate(LaTeXFeatures & features) const override;
49         ///
50         InsetCode lyxCode() const override { return MATH_XYMATRIX_CODE; }
51         ///
52         void mathmlize(MathStream &) const override;
53         ///
54         void htmlize(HtmlStream &) const override;
55
56 private:
57         ///
58         Inset * clone() const override;
59         /// extra spacing, may be empty
60         Length spacing_;
61         ///
62         char spacing_code_;
63         ///
64         bool equal_spacing_;
65 };
66
67
68
69 } // namespace lyx
70 #endif