3 * \file InsetMathDiagram.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Ronen Abravanel
10 * Full author contact details are available in file CREDITS.
13 #ifndef MATH_DIAGRAM_H
14 #define MATH_DIAGRAM_H
16 #include "InsetMathGrid.h"
22 class InsetMathDiagram : public InsetMathGrid {
25 explicit InsetMathDiagram(Buffer * buf);
27 void metrics(MetricsInfo &, Dimension &) const override;
29 void draw(PainterInfo & pi, int x, int y) const override;
31 InsetMathDiagram const * asDiagramInset() const { return this; }
33 int colsep() const override;
35 int rowsep() const override;
38 void write(TeXMathStream & os) const override;
40 void infoize(odocstream & os) const override;
42 void normalize(NormalStream &) const override;
44 void maple(MapleStream &) const override;
46 void validate(LaTeXFeatures & features) const override;
48 InsetCode lyxCode() const override { return MATH_DIAGRAM_CODE; }
52 Inset * clone() const override;