]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.C
prepare for 1.1.6pre2
[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 <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "lyxcursor.h"
18
19
20 void LyXCursor::par(LyXParagraph * p) 
21 {
22         par_ = p;
23 }
24
25
26 LyXParagraph * LyXCursor::par()
27 {
28         return par_;
29 }
30
31
32 LyXParagraph * LyXCursor::par() const
33 {
34         return par_;
35 }
36
37
38 void LyXCursor::pos(LyXParagraph::size_type p)
39 {
40         pos_ = p;
41 }
42
43
44 LyXParagraph::size_type LyXCursor::pos() const
45 {
46         return pos_;
47 }
48
49
50 void LyXCursor::boundary(bool b) 
51 {
52         boundary_ = b;
53 }
54
55
56 bool LyXCursor::boundary() const
57 {
58         return boundary_;
59 }
60
61
62 void LyXCursor::x(int n)
63 {
64         x_ = n;
65 }
66
67 int LyXCursor::x() const
68 {
69         return x_;
70 }
71
72
73 void LyXCursor::x_fix(int i)
74 {
75         x_fix_ = i;
76 }
77
78
79 int LyXCursor::x_fix() const
80 {
81         return x_fix_;
82 }
83
84
85 void LyXCursor::y(int i)
86 {
87         y_ = i;
88 }
89
90
91 int LyXCursor::y() const
92 {
93         return y_;
94 }
95
96
97 void LyXCursor::row(Row * r)
98 {
99         row_ = r;
100 }
101
102
103 Row * LyXCursor::row()
104 {
105         return row_;
106 }
107
108
109 Row * LyXCursor::row() const
110 {
111         return row_;
112 }