2 * \file InsetMathFracBase.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "InsetMathFracBase.h"
21 InsetMathFracBase::InsetMathFracBase(idx_type ncells)
22 : InsetMathNest(ncells)
26 bool InsetMathFracBase::idxRight(Cursor &) const
32 bool InsetMathFracBase::idxLeft(Cursor &) const
38 bool InsetMathFracBase::idxUpDown(Cursor & cur, bool up) const
40 InsetMath::idx_type target = !up; // up ? 0 : 1, since upper cell has idx 0
41 if (cur.idx() == target)
44 cur.pos() = cell(target).x2pos(cur.x_target());