]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDiagram.h
Reduce horizontal spacing for simple inline equations
[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         void draw(PainterInfo & pi, int x, int y) const;
30         ///
31         InsetMathDiagram const * asDiagramInset() const { return this; }
32         ///
33         virtual int colsep() const;
34         ///
35         virtual int rowsep() const;
36
37         ///
38         void write(WriteStream & os) const;
39         ///
40         void infoize(odocstream & os) const;
41         ///
42         void normalize(NormalStream &) const;
43         ///
44         void maple(MapleStream &) const;
45         ///
46         void validate(LaTeXFeatures & features) const;
47         ///
48         InsetCode lyxCode() const { return MATH_DIAGRAM_CODE; }
49
50 private:
51         ///
52         virtual Inset * clone() const;
53
54 };
55
56
57
58 } // namespace lyx
59 #endif