]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDiagram.h
Fix #10778 (issue with CJK and language nesting)
[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         InsetMathDiagram(Buffer * buf);
26         ///
27         void metrics(MetricsInfo &, Dimension &) const;
28         ///
29         InsetMathDiagram const * asDiagramInset() const { return this; }
30         ///
31         virtual int colsep() const;
32         ///
33         virtual int rowsep() const;
34
35         ///
36         void write(WriteStream & os) const;
37         ///
38         void infoize(odocstream & os) const;
39         ///
40         void normalize(NormalStream &) const;
41         ///
42         void maple(MapleStream &) const;
43         ///
44         void validate(LaTeXFeatures & features) const;
45         ///
46         InsetCode lyxCode() const { return MATH_DIAGRAM_CODE; }
47
48 private:
49         ///
50         virtual Inset * clone() const;
51
52 };
53
54
55
56 } // namespace lyx
57 #endif