]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDiagram.h
95e16e278023b45460be946c2f2b90c41b17d022
[lyx.git] / src / mathed / InsetMathDiagram.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathDiagram.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 *  \author Ronen Abravanel
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef MATH_DIAGRAM_H
14 #define MATH_DIAGRAM_H
15
16 #include "InsetMathGrid.h"
17
18
19 namespace lyx {
20
21
22 class InsetMathDiagram : public InsetMathGrid {
23 public:
24         ///
25         explicit InsetMathDiagram(Buffer * buf);
26         ///
27         void metrics(MetricsInfo &, Dimension &) const override;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const override;
30         ///
31         InsetMathDiagram const * asDiagramInset() const { return this; }
32         ///
33         int colsep() const override;
34         ///
35         int rowsep() const override;
36
37         ///
38         void write(TeXMathStream & os) const override;
39         ///
40         void infoize(odocstream & os) const override;
41         ///
42         void normalize(NormalStream &) const override;
43         ///
44         void maple(MapleStream &) const override;
45         ///
46         void validate(LaTeXFeatures & features) const override;
47         ///
48         InsetCode lyxCode() const override { return MATH_DIAGRAM_CODE; }
49
50 private:
51         ///
52         Inset * clone() const override;
53
54 };
55
56
57
58 } // namespace lyx
59 #endif