]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracbase.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[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::idxUp(idx_type & idx) const
27 {
28         if (idx == 0)
29                 return false;
30         idx = 0;
31         return true;
32 }
33
34
35 bool MathFracbaseInset::idxDown(idx_type & idx) const
36 {
37         if (idx == 1)
38                 return false;
39         idx = 1;
40         return true;
41 }