]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.C
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_parboxinset.C
index 959be94e5271e33876efb15c3817ee8970f7b26e..176d34988f1253a80b6768f86be010162fcff17f 100644 (file)
@@ -1,16 +1,31 @@
+/**
+ * \file math_parboxinset.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_parboxinset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
-#include "lyxlength.h"
 #include "debug.h"
 
+
+using std::string;
 using std::auto_ptr;
+using std::endl;
 
 
 MathParboxInset::MathParboxInset()
        : lyx_width_(0), tex_width_("0mm"), position_('c')
 {
-       lyxerr << "constructing MathParboxInset\n";
+       lyxerr << "constructing MathParboxInset" << endl;
 }
 
 
@@ -30,7 +45,7 @@ void MathParboxInset::setWidth(string const & w)
 {
        tex_width_ = w;
        lyx_width_ = LyXLength(w).inBP();
-       lyxerr << "setting " << w << " to " << lyx_width_ << " pixel\n";
+       lyxerr << "setting " << w << " to " << lyx_width_ << " pixel" << endl;
 }
 
 
@@ -38,9 +53,9 @@ void MathParboxInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy1(mi.base, "textnormal");
        WidthChanger dummy2(mi.base, lyx_width_);
-       MathTextInset::metrics(mi, dim_);
-       metricsMarkers();
-       dim = dim_;
+       MathTextInset::metrics(mi, dim);
+       metricsMarkers(dim);
+       dim_ = dim;
 }