-void
-MathFracInset::draw(Painter & pain, int x, int y)
-{
- short idxp = idx;
- short sizex = size;
-
- idx = 0;
- if (size == LM_ST_DISPLAY) ++size;
- 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) << ')';