bool MathCursor::posLeft()
{
- if (inNucleus())
- return false;
if (pos() == 0)
return false;
--pos();
return;
}
+/*
if (prevAtom()->asScriptInset()) {
// simply enter nucleus
left();
if (pos() == 1) {
}
}
+*/
--pos();
plainErase();
return;
}
+/*
// if we are standing in front of a script inset, grab item before us and
// move it into nucleus
// and remove first thing.
}
return;
}
+*/
plainErase();
}
MathInset::mode_type MathFontInset::currentMode() const
{
- return key_->extra == "mathmode" ? MATH_MODE : TEXT_MODE;
+ if (key_->extra == "mathmode")
+ return MATH_MODE;
+ if (key_->extra == "textmode")
+ return TEXT_MODE;
+ return UNDECIDED_MODE;
}
bool MathScriptInset::idxFirst(idx_type & idx, pos_type & pos) const
{
idx = 2;
- pos = nuc().size();
+ pos = 0;
return true;
}
}
dim_.a = dy1() + (hasUp() ? up().ascent() : 0);
dim_.d = dy0() + (hasDown() ? down().descent() : 0);
- metricsMarkers();
+ metricsMarkers2();
}
up().draw(pi, x + dx1(), y - dy1());
if (hasDown())
down().draw(pi, x + dx0(), y + dy0());
- drawMarkers(pi, x, y);
+ drawMarkers2(pi, x, y);
}
void MathScriptInset::infoize(std::ostream & os) const
{
+ os << "Scripts";
if (limits_)
- os << (limits_ == 1 ? "Displayed limits" : "Inlined limits");
+ os << (limits_ == 1 ? ", Displayed limits" : ", Inlined limits");
}