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-11-15 09:51:57 +00:00
|
|
|
bool MathFracbaseInset::idxFirstUp(idx_type & idx, pos_type & pos) const
|
|
|
|
{
|
|
|
|
idx = 0;
|
|
|
|
pos = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool MathFracbaseInset::idxFirstDown(idx_type & idx, pos_type & pos) const
|
|
|
|
{
|
|
|
|
idx = 1;
|
|
|
|
pos = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool MathFracbaseInset::idxLastUp(idx_type & idx, pos_type & pos) const
|
|
|
|
{
|
|
|
|
idx = 0;
|
|
|
|
pos = cell(0).size();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool MathFracbaseInset::idxLastDown(idx_type & idx, pos_type & pos) const
|
|
|
|
{
|
|
|
|
idx = 1;
|
|
|
|
pos = cell(1).size();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-12-12 13:11:28 +00:00
|
|
|
bool MathFracbaseInset::idxUp(idx_type & idx) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
if (idx == 0)
|
|
|
|
return false;
|
|
|
|
idx = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-12-12 13:11:28 +00:00
|
|
|
bool MathFracbaseInset::idxDown(idx_type & idx) const
|
2001-08-08 17:26:30 +00:00
|
|
|
{
|
|
|
|
if (idx == 1)
|
|
|
|
return false;
|
|
|
|
idx = 1;
|
|
|
|
return true;
|
|
|
|
}
|