+#ifdef __GNUG__
+#pragma implementation
+#endif
#include "math_parboxinset.h"
#include "math_mathmlstream.h"
MathParboxInset::MathParboxInset()
- : MathNestInset(1), lyx_width_(0), tex_width_("0mm"),
- position_('c')
+ : lyx_width_(0), tex_width_("0mm"), position_('c')
{
lyxerr << "constructing MathParboxInset\n";
}
void MathParboxInset::metrics(MathMetricsInfo & mi) const
{
MathFontSetChanger dummy1(mi.base, "textnormal");
- MathWidthChanger dummy2(mi.base, lyx_width_);
- xcell(0).metrics(mi);
- ascent_ = xcell(0).ascent();
- descent_ = xcell(0).descent() + 1;
- width_ = xcell(0).width() + 2;
+ MathWidthChanger dummy2(mi.base, lyx_width_);
+ MathTextInset::metrics(mi);
+ metricsMarkers2();
}
void MathParboxInset::draw(MathPainterInfo & pi, int x, int y) const
{
- MathFontSetChanger dummy1(pi.base, "textnormal");
- MathWidthChanger dummy2(pi.base, lyx_width_);
- xcell(0).draw(pi, x + 1, y);
- drawMarkers(pi, x, y);
+ MathFontSetChanger dummy(pi.base, "textnormal");
+ MathTextInset::draw(pi, x + 1, y);
+ drawMarkers2(pi, x, y);
}
void MathParboxInset::infoize(std::ostream & os) const
{
- os << "Box: Parbox " << tex_width_ << ' ';
+ os << "Box: Parbox " << tex_width_;
}
-