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;
29 void draw(PainterInfo & pi, int x, int y) const;
31 InsetMathDiagram const * asDiagramInset() const { return this; }
33 virtual int colsep() const;
35 virtual int rowsep() const;
38 void write(WriteStream & os) const;
40 void infoize(odocstream & os) const;
42 void normalize(NormalStream &) const;
44 void maple(MapleStream &) const;
46 void validate(LaTeXFeatures & features) const;
48 InsetCode lyxCode() const { return MATH_DIAGRAM_CODE; }
52 virtual Inset * clone() const;