-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "math_scriptinset.h"
#include "math_support.h"
else {
// in nucleus
- // don't go up/down unless in last position
- if (pos != cell(2).size())
- return false;
// don't go up/down if there is no cell.
if (!has(up))
return false;
- // otherwise move into the first position
- idx = up;
- pos = 0;
+ // go up/down only if in the last position
+ // or in the first position of something with displayed limits
+ if (pos == cell(2).size() || (pos == 0 && hasLimits())) {
+ idx = up;
+ pos = 0;
+ return true;
+ }
+ return false;
}
return true;
}
}
-void MathScriptInset::maplize(MapleStream & os) const
+void MathScriptInset::maple(MapleStream & os) const
{
if (nuc().size())
os << nuc();
}
-void MathScriptInset::mathematicize(MathematicaStream & os) const
+void MathScriptInset::mathematica(MathematicaStream & os) const
{
bool d = hasDown() && down().size();
bool u = hasUp() && up().size();
}
-void MathScriptInset::octavize(OctaveStream & os) const
+void MathScriptInset::octave(OctaveStream & os) const
{
if (nuc().size())
os << nuc();
}
-MathInset::result_type MathScriptInset::dispatch
+dispatch_result MathScriptInset::dispatch
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
{
if (cmd.action == LFUN_MATH_LIMITS) {