2001-08-08 17:26:30 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "math_fracbase.h"
|
2001-11-08 12:06:56 +00:00
|
|
|
#include "math_mathmlstream.h"
|
2001-08-08 17:26:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
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-03-21 09:48:46 +00:00
|
|
|
bool MathFracbaseInset::idxUpDown(idx_type & idx, bool up) 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;
|
2001-08-08 17:26:30 +00:00
|
|
|
return true;
|
|
|
|
}
|