-void
-MathFracInset::draw(Painter & pain, int x, int y)
-{
- int const idxp = idx_;
- int const sizex = size();
-
- idx_ = 0;
- if (size() == LM_ST_DISPLAY) incSize();
- MathParInset::draw(pain, x + (width - w0_) / 2, y - des0_);
- den_->draw(pain, x + (width - w1_) / 2, y + den_->Ascent() + 2 - dh_);
- size(sizex);
- if (objtype == LM_OT_FRAC)
- pain.line(x + 2, y - dh_,
- x + width - 4, y - dh_, LColor::mathline);
- idx_ = idxp;
+void MathFracInset::mathematica(MathematicaStream & os) const
+{
+ os << '(' << cell(0) << ")/(" << cell(1) << ')';