]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.C
acdad00eeceed2843ec68bcff6096dab078a9daf
[lyx.git] / src / lyxcursor.C
1 /* This file is part of
2  * ====================================================== 
3  * 
4  *           LyX, The Document Processor
5  *       
6  *           Copyright 1995 Matthias Ettrich
7  *           Copyright 1995-2000 The LyX Team.
8  *
9  * ====================================================== */
10
11 #include "lyxcursor.h"
12
13
14 void LyXCursor::par(LyXParagraph * p) 
15 {
16         par_ = p;
17 }
18
19
20 LyXParagraph * LyXCursor::par()
21 {
22         return par_;
23 }
24
25
26 LyXParagraph * LyXCursor::par() const
27 {
28         return par_;
29 }
30
31
32 void LyXCursor::pos(LyXParagraph::size_type p)
33 {
34         pos_ = p;
35 }
36
37
38 LyXParagraph::size_type LyXCursor::pos() const
39 {
40         return pos_;
41 }
42
43
44 void LyXCursor::boundary(bool b) 
45 {
46         boundary_ = b;
47 }
48
49
50 bool LyXCursor::boundary() const
51 {
52         return boundary_;
53 }
54
55
56 void LyXCursor::x(int n)
57 {
58         x_ = n;
59 }
60
61 int LyXCursor::x() const
62 {
63         return x_;
64 }
65
66
67 void LyXCursor::x_fix(int i)
68 {
69         x_fix_ = i;
70 }
71
72
73 int LyXCursor::x_fix() const
74 {
75         return x_fix_;
76 }
77
78
79 void LyXCursor::y(unsigned long i)
80 {
81         y_ = i;
82 }
83
84
85 unsigned long LyXCursor::y() const
86 {
87         return y_;
88 }
89
90
91 void LyXCursor::row(Row * r)
92 {
93         row_ = r;
94 }
95
96
97 Row * LyXCursor::row()
98 {
99         return row_;
100 }
101
102
103 Row * LyXCursor::row() const
104 {
105         return row_;
106 }