]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracbase.C
Standardise the header blurb in mathed.
[lyx.git] / src / mathed / math_fracbase.C
1 /**
2  * \file math_fracbase.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "math_fracbase.h"
14
15
16 MathFracbaseInset::MathFracbaseInset()
17         : MathNestInset(2)
18 {}
19
20
21 bool MathFracbaseInset::idxRight(idx_type &, pos_type &) const
22 {
23         return false;
24 }
25
26
27 bool MathFracbaseInset::idxLeft(idx_type &, pos_type &) const
28 {
29         return false;
30 }
31
32
33 bool MathFracbaseInset::idxUpDown(idx_type & idx, pos_type & pos, bool up,
34         int targetx) const
35 {
36         MathInset::idx_type target = !up; // up ? 0 : 1, since upper cell has idx 0
37         if (idx == target)
38                 return false;
39         idx = target;
40         pos = cell(idx).x2pos(targetx);
41         return true;
42 }