]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracbase.C
don't #include too much stuff in .h
[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(MathInset::idx_type &,
15                                  MathInset::pos_type &) const
16 {
17         return false;
18 }
19
20
21 bool MathFracbaseInset::idxLeft(MathInset::idx_type &,
22                                 MathInset::pos_type &) const
23 {
24         return false;
25 }
26
27
28 bool MathFracbaseInset::idxUp(MathInset::idx_type & idx,
29                               MathInset::pos_type & pos) const
30 {
31         if (idx == 0)
32                 return false;
33         idx = 0;
34         pos = std::min(pos, cell(idx).size());
35         return true;
36 }
37
38
39 bool MathFracbaseInset::idxDown(MathInset::idx_type & idx,
40                                 MathInset::pos_type & pos) const
41 {
42         if (idx == 1)
43                 return false;
44         idx = 1;
45         pos = std::min(pos, cell(idx).size());
46         return true;
47 }