]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracbase.C
first shot at preview. It crashes. Don't know why. To see it work a bit, change
[lyx.git] / src / mathed / math_fracbase.C
1 #ifdef __GNUG__
2 #pragma implementation
3 #endif
4
5 #include "math_fracbase.h"
6 #include "math_mathmlstream.h"
7
8
9 MathFracbaseInset::MathFracbaseInset()
10         : MathNestInset(2)
11 {}
12
13
14 bool MathFracbaseInset::idxRight(idx_type &, pos_type &) const
15 {
16         return false;
17 }
18
19
20 bool MathFracbaseInset::idxLeft(idx_type &, pos_type &) const
21 {
22         return false;
23 }
24
25
26 bool MathFracbaseInset::idxUpDown(idx_type & idx, bool up) const
27 {
28         MathInset::idx_type target = !up; // up ? 0 : 1, since upper cell has idx 0
29         if (idx == target)
30                 return false;
31         idx = target;
32         return true;
33 }