2001-08-08 17:26:30 +00:00
|
|
|
|
|
|
|
#include "math_fracbase.h"
|
|
|
|
|
|
|
|
|
|
|
|
MathFracbaseInset::MathFracbaseInset()
|
|
|
|
: MathNestInset(2)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
2001-12-12 14:05:38 +00:00
|
|
|
bool MathFracbaseInset::idxRight(idx_type &, pos_type &) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-12-12 14:05:38 +00:00
|
|
|
bool MathFracbaseInset::idxLeft(idx_type &, pos_type &) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-07-30 13:56:02 +00:00
|
|
|
bool MathFracbaseInset::idxUpDown(idx_type & idx, pos_type & pos, bool up,
|
|
|
|
int targetx) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
2002-03-22 15:50:50 +00:00
|
|
|
MathInset::idx_type target = !up; // up ? 0 : 1, since upper cell has idx 0
|
2002-03-21 09:48:46 +00:00
|
|
|
if (idx == target)
|
2001-08-08 17:26:30 +00:00
|
|
|
return false;
|
2002-03-21 09:48:46 +00:00
|
|
|
idx = target;
|
2002-08-02 14:29:42 +00:00
|
|
|
pos = cell(idx).x2pos(targetx);
|
2001-08-08 17:26:30 +00:00
|
|
|
return true;
|
|
|
|
}
|