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-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,
|
2001-10-12 07:52:13 +00:00
|
|
|
MathInset::pos_type & pos) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
if (idx == 0)
|
|
|
|
return false;
|
|
|
|
idx = 0;
|
2001-10-12 07:52:13 +00:00
|
|
|
pos = std::min(pos, cell(idx).size());
|
2001-08-08 17:26:30 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-10-01 12:10:32 +00:00
|
|
|
bool MathFracbaseInset::idxDown(MathInset::idx_type & idx,
|
2001-10-12 07:52:13 +00:00
|
|
|
MathInset::pos_type & pos) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
if (idx == 1)
|
|
|
|
return false;
|
|
|
|
idx = 1;
|
2001-10-12 07:52:13 +00:00
|
|
|
pos = std::min(pos, cell(idx).size());
|
2001-08-08 17:26:30 +00:00
|
|
|
return true;
|
|
|
|
}
|