]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSplit.h
Fix CSS
[lyx.git] / src / mathed / InsetMathSplit.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathSplit.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_SPLITINSET_H
13 #define MATH_SPLITINSET_H
14
15 #include "InsetMathGrid.h"
16
17
18 namespace lyx {
19
20
21 class InsetMathSplit : public InsetMathGrid {
22 public:
23         ///
24         explicit InsetMathSplit(Buffer * buf, docstring const & name,
25                 char valign = 'c', bool numbered = false);
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const override;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const override;
30         ///
31         bool getStatus(Cursor & cur, FuncRequest const & cmd,
32                 FuncStatus & flag) const override;
33
34         void write(TeXMathStream & os) const override;
35         ///
36         void infoize(odocstream & os) const override;
37         ///
38         void mathmlize(MathMLStream &) const override;
39         ///
40         void htmlize(HtmlStream &) const override;
41         ///
42         void validate(LaTeXFeatures & features) const override;
43         ///
44         int defaultColSpace(col_type) override { return 0; }
45         ///
46         int displayColSpace(col_type col) const override;
47         ///
48         char defaultColAlign(col_type) override;
49         ///
50         char displayColAlign(idx_type idx) const override;
51         ///
52         InsetCode lyxCode() const override { return MATH_SPLIT_CODE; }
53
54 private:
55         ///
56         Inset * clone() const override;
57         ///
58         docstring name_;
59         ///
60         bool numbered_;
61 };
62
63
64 } // namespace lyx
65 #endif