]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_parinset.C
index 28af5f9ccb3fdccab724a930b2978a5d8ca60d6c..49104046875bc48c88c29aa9c20842fb62d6fbc9 100644 (file)
@@ -1,25 +1,28 @@
 
+#include <config.h>
+
 #include "math_parinset.h"
 #include "math_mathmlstream.h"
-#include "debug.h"
+#include "support/LOstream.h"
 
 
-MathParInset::MathParInset()
+MathParInset::MathParInset(MathArray const & ar)
 {
-       lyxerr << "constructing MathParInset\n";
+       cells_[0] = ar;
 }
 
 
-void MathParInset::metrics(MathMetricsInfo & mi) const
+void MathParInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       MathFontSetChanger dummy1(mi.base, "textnormal");
+       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);
 }
 
@@ -35,4 +38,3 @@ void MathParInset::infoize(std::ostream & os) const
 {
        os << "Type: Paragraph ";
 }
-