]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDiagram.h
listerrors.lyx : Update a link.
[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 "Length.h"
17 #include "InsetMathGrid.h"
18
19
20 namespace lyx {
21
22
23 class InsetMathDiagram : public InsetMathGrid {
24 public:
25         ///
26         InsetMathDiagram(Buffer * buf);
27         ///
28         void metrics(MetricsInfo &, Dimension &) const;
29         ///
30         InsetMathDiagram const * asDiagramInset() const { return this; }
31         ///
32         virtual int colsep() const;
33         ///
34         virtual int rowsep() const;
35
36         ///
37         void write(WriteStream & os) const;
38         ///
39         void infoize(odocstream & os) const;
40         ///
41         void normalize(NormalStream &) const;
42         ///
43         void maple(MapleStream &) const;
44         ///
45         void validate(LaTeXFeatures & features) const;
46         ///
47         InsetCode lyxCode() const { return MATH_DIAGRAM_CODE; }
48
49 private:
50         ///
51         virtual Inset * clone() const;
52
53 };
54
55
56
57 } // namespace lyx
58 #endif