2 * \file InsetMathDiagram.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Ronen Abravanel
9 * Full author contact details are available in file CREDITS.
14 #include "InsetMathDiagram.h"
16 #include "MathStream.h"
18 #include "LaTeXFeatures.h"
19 #include "MetricsInfo.h"
26 InsetMathDiagram::InsetMathDiagram(Buffer * buf) : InsetMathGrid(buf, 1, 1)
31 Inset * InsetMathDiagram::clone() const
33 return new InsetMathDiagram(*this);
37 int InsetMathDiagram::colsep() const
43 int InsetMathDiagram::rowsep() const
49 void InsetMathDiagram::metrics(MetricsInfo & mi, Dimension & dim) const
51 if (mi.base.style == LM_ST_DISPLAY)
52 mi.base.style = LM_ST_TEXT;
53 InsetMathGrid::metrics(mi, dim);
57 void InsetMathDiagram::write(WriteStream & os) const
59 MathEnsurer ensurer(os);
61 bool open = os.startOuterRow();
63 InsetMathGrid::write(os);
70 void InsetMathDiagram::infoize(odocstream & os) const
73 InsetMathGrid::infoize(os);
77 void InsetMathDiagram::normalize(NormalStream & os) const
80 InsetMathGrid::normalize(os);
85 void InsetMathDiagram::maple(MapleStream & os) const
88 InsetMathGrid::maple(os);
93 void InsetMathDiagram::validate(LaTeXFeatures & features) const
95 features.require("feyn");
96 InsetMathGrid::validate(features);