]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracbase.C
introduce namespace lyx::support
[lyx.git] / src / mathed / math_fracbase.C
1
2 #include "math_fracbase.h"
3
4
5 MathFracbaseInset::MathFracbaseInset()
6         : MathNestInset(2)
7 {}
8
9
10 bool MathFracbaseInset::idxRight(idx_type &, pos_type &) const
11 {
12         return false;
13 }
14
15
16 bool MathFracbaseInset::idxLeft(idx_type &, pos_type &) const
17 {
18         return false;
19 }
20
21
22 bool MathFracbaseInset::idxUpDown(idx_type & idx, pos_type & pos, bool up,
23         int targetx) const
24 {
25         MathInset::idx_type target = !up; // up ? 0 : 1, since upper cell has idx 0
26         if (idx == target)
27                 return false;
28         idx = target;
29         pos = cell(idx).x2pos(targetx);
30         return true;
31 }