]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.C
spellchecker cleanup - fscked knows why pspell is broken, I am TOTALLY
[lyx.git] / src / lyxcursor.C
1 /**
2  * \file lyxcursor.C
3  * Copyright 1995-2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Matthias Ettrich
7  */
8
9 #include <config.h>
10
11 #ifdef __GNUG__
12 #pragma implementation
13 #endif
14
15 #include "lyxcursor.h"
16
17
18 LyXCursor::LyXCursor()
19         : par_(0), pos_(0), boundary_(false),
20           x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
21 {}
22
23
24 void LyXCursor::par(Paragraph * p)
25 {
26         par_ = p;
27 }
28
29
30 Paragraph * LyXCursor::par() const
31 {
32         return par_;
33 }
34
35
36 void LyXCursor::pos(lyx::pos_type p)
37 {
38         pos_ = p;
39 }
40
41
42 lyx::pos_type LyXCursor::pos() const
43 {
44         return pos_;
45 }
46
47
48 void LyXCursor::boundary(bool b)
49 {
50         boundary_ = b;
51 }
52
53
54 bool LyXCursor::boundary() const
55 {
56         return boundary_;
57 }
58
59
60 void LyXCursor::x(int n)
61 {
62         x_ = n;
63 }
64
65 int LyXCursor::x() const
66 {
67         return x_;
68 }
69
70
71 void LyXCursor::ix(int n)
72 {
73         ix_ = n;
74 }
75
76 int LyXCursor::ix() const
77 {
78         return ix_;
79 }
80
81
82 void LyXCursor::x_fix(int i)
83 {
84         x_fix_ = i;
85 }
86
87
88 int LyXCursor::x_fix() const
89 {
90         return x_fix_;
91 }
92
93
94 void LyXCursor::y(int i)
95 {
96         y_ = i;
97 }
98
99
100 int LyXCursor::y() const
101 {
102         return y_;
103 }
104
105
106 void LyXCursor::iy(int i)
107 {
108         iy_ = i;
109 }
110
111
112 int LyXCursor::iy() const
113 {
114         return iy_;
115 }
116
117
118 void LyXCursor::row(Row * r)
119 {
120         row_ = r;
121 }
122
123
124 Row * LyXCursor::row() const
125 {
126         return row_;
127 }
128
129
130 void LyXCursor::irow(Row * r)
131 {
132         irow_ = r;
133 }
134
135
136 Row * LyXCursor::irow() const
137 {
138         return irow_;
139 }