-#include <config.h>
+/**
+ * \file math_xymatrixinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+#include <config.h>
#include "math_xymatrixinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
+#include "LaTeXFeatures.h"
+#include "support/std_ostream.h"
+
MathXYMatrixInset::MathXYMatrixInset()
: MathGridInset(1, 1)
{}
-MathInset * MathXYMatrixInset::clone() const
+std::auto_ptr<InsetBase> MathXYMatrixInset::doClone() const
{
- return new MathXYMatrixInset(*this);
+ return std::auto_ptr<InsetBase>(new MathXYMatrixInset(*this));
}
}
-void MathXYMatrixInset::metrics(MetricsInfo & st) const
+void MathXYMatrixInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
- MetricsInfo mi = st;
if (mi.base.style == LM_ST_DISPLAY)
mi.base.style = LM_ST_TEXT;
- MathGridInset::metrics(mi);
+ MathGridInset::metrics(mi, dim);
}
}
+void MathXYMatrixInset::infoize(std::ostream & os) const
+{
+ os << "xymatrix ";
+ MathGridInset::infoize(os);
+}
+
+
void MathXYMatrixInset::normalize(NormalStream & os) const
{
os << "[xymatrix ";