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 "LaTeXFeatures.h"
17 #include "MathStream.h"
24 InsetMathDiagram::InsetMathDiagram(Buffer * buf) : InsetMathGrid(buf, 1, 1)
29 Inset * InsetMathDiagram::clone() const
31 return new InsetMathDiagram(*this);
35 int InsetMathDiagram::colsep() const
41 int InsetMathDiagram::rowsep() const
47 void InsetMathDiagram::metrics(MetricsInfo & mi, Dimension & dim) const
49 if (mi.base.style == LM_ST_DISPLAY)
50 mi.base.style = LM_ST_TEXT;
51 InsetMathGrid::metrics(mi, dim);
55 void InsetMathDiagram::write(WriteStream & os) const
57 MathEnsurer ensurer(os);
60 InsetMathGrid::write(os);
65 void InsetMathDiagram::infoize(odocstream & os) const
68 InsetMathGrid::infoize(os);
72 void InsetMathDiagram::normalize(NormalStream & os) const
75 InsetMathGrid::normalize(os);
80 void InsetMathDiagram::maple(MapleStream & os) const
83 InsetMathGrid::maple(os);
88 void InsetMathDiagram::validate(LaTeXFeatures & features) const
90 features.require("feyn");
91 InsetMathGrid::validate(features);