]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.C
Forgot to save changed file ;)
[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-2001 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 LyXCursor::LyXCursor()
21         : par_(0), pos_(0), boundary_(false),
22           x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
23 {}
24
25
26 void LyXCursor::par(Paragraph * p)
27 {
28         par_ = p;
29 }
30
31
32 Paragraph * LyXCursor::par() const
33 {
34         return par_;
35 }
36
37
38 void LyXCursor::pos(lyx::pos_type p)
39 {
40         pos_ = p;
41 }
42
43
44 lyx::pos_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::ix(int n)
74 {
75         ix_ = n;
76 }
77
78 int LyXCursor::ix() const
79 {
80         return ix_;
81 }
82
83
84 void LyXCursor::x_fix(int i)
85 {
86         x_fix_ = i;
87 }
88
89
90 int LyXCursor::x_fix() const
91 {
92         return x_fix_;
93 }
94
95
96 void LyXCursor::y(int i)
97 {
98         y_ = i;
99 }
100
101
102 int LyXCursor::y() const
103 {
104         return y_;
105 }
106
107
108 void LyXCursor::iy(int i)
109 {
110         iy_ = i;
111 }
112
113
114 int LyXCursor::iy() const
115 {
116         return iy_;
117 }
118
119
120 void LyXCursor::row(Row * r)
121 {
122         row_ = r;
123 }
124
125
126 Row * LyXCursor::row() const
127 {
128         return row_;
129 }
130
131
132 void LyXCursor::irow(Row * r)
133 {
134         irow_ = r;
135 }
136
137
138 Row * LyXCursor::irow() const
139 {
140         return irow_;
141 }