]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parinset.C
mathed uglyfication
[lyx.git] / src / mathed / math_parinset.C
index 96d4a6cb66d36bacc60727d036062789c45fec41..28e2209f1f12d3bbf6ad02577ead2fa64389e924 100644 (file)
@@ -1,19 +1,38 @@
+/**
+ * \file math_parinset.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_parinset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
-#include "debug.h"
+#include "support/std_ostream.h"
 
 
-void MathParInset::metrics(MathMetricsInfo & mi) const
+MathParInset::MathParInset(MathArray const & ar)
 {
-       MathFontSetChanger dummy1(mi.base, "textnormal");
+       cells_[0] = ar;
+}
+
+
+void MathParInset::metrics(MetricsInfo & mi, Dimension & dim) const
+{
+       FontSetChanger dummy1(mi.base, "textnormal");
        MathGridInset::metrics(mi);
+       dim = dim_;
 }
 
 
-void MathParInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathParInset::draw(PainterInfo & pi, int x, int y) const
 {
-       MathFontSetChanger dummy1(pi.base, "textnormal");
+       FontSetChanger dummy1(pi.base, "textnormal");
        MathGridInset::draw(pi, x, y);
 }
 
@@ -29,4 +48,3 @@ void MathParInset::infoize(std::ostream & os) const
 {
        os << "Type: Paragraph ";
 }
-