#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "math_envinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
+#include "support/LOstream.h"
MathEnvInset::MathEnvInset(string const & name)
void MathEnvInset::metrics(MathMetricsInfo & mi) const
{
- xcell(0).metrics(mi);
- ascent_ = xcell(0).ascent() + 1;
- descent_ = xcell(0).descent() + 1;
- width_ = xcell(0).width() + 2;
+ dim_ = cell(0).metrics(mi);
+ metricsMarkers2();
}
void MathEnvInset::draw(MathPainterInfo & pi, int x, int y) const
{
- xcell(0).draw(pi, x + 1, y);
+ cell(0).draw(pi, x + 1, y);
drawMarkers2(pi, x, y);
}
void MathEnvInset::normalize(NormalStream & os) const
{
- os << "[env " << name_ << " " << cell(0) << ']';
+ os << "[env " << name_ << ' ' << cell(0) << ']';
}