2001-08-08 17:26:30 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "math_fracbase.h"
|
|
|
|
|
|
|
|
|
|
|
|
MathFracbaseInset::MathFracbaseInset()
|
|
|
|
: MathNestInset(2)
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
2001-10-01 12:10:32 +00:00
|
|
|
bool MathFracbaseInset::idxRight(MathInset::idx_type &,
|
|
|
|
MathInset::pos_type &) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-10-01 12:10:32 +00:00
|
|
|
bool MathFracbaseInset::idxLeft(MathInset::idx_type &,
|
|
|
|
MathInset::pos_type &) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-10-01 12:10:32 +00:00
|
|
|
bool MathFracbaseInset::idxUp(MathInset::idx_type & idx,
|
|
|
|
MathInset::pos_type &) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
if (idx == 0)
|
|
|
|
return false;
|
|
|
|
idx = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-10-01 12:10:32 +00:00
|
|
|
bool MathFracbaseInset::idxDown(MathInset::idx_type & idx,
|
|
|
|
MathInset::pos_type &) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
if (idx == 1)
|
|
|
|
return false;
|
|
|
|
idx = 1;
|
|
|
|
return true;
|
|
|
|
}
|