]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.C
Bugfixes, de.po and sl.po updates, lyxlookup cleanup
[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 LyXCursor::LyXCursor() : par_(0), pos_(0), boundary_(false),
21                          x_(0), x_fix_(0), y_(0), row_(0)
22 {
23 }
24
25
26 void LyXCursor::par(LyXParagraph * p) 
27 {
28         par_ = p;
29 }
30
31
32 LyXParagraph * LyXCursor::par()
33 {
34         return par_;
35 }
36
37
38 LyXParagraph * LyXCursor::par() const
39 {
40         return par_;
41 }
42
43
44 void LyXCursor::pos(LyXParagraph::size_type p)
45 {
46         pos_ = p;
47 }
48
49
50 LyXParagraph::size_type LyXCursor::pos() const
51 {
52         return pos_;
53 }
54
55
56 void LyXCursor::boundary(bool b) 
57 {
58         boundary_ = b;
59 }
60
61
62 bool LyXCursor::boundary() const
63 {
64         return boundary_;
65 }
66
67
68 void LyXCursor::x(int n)
69 {
70         x_ = n;
71 }
72
73 int LyXCursor::x() const
74 {
75         return x_;
76 }
77
78
79 void LyXCursor::x_fix(int i)
80 {
81         x_fix_ = i;
82 }
83
84
85 int LyXCursor::x_fix() const
86 {
87         return x_fix_;
88 }
89
90
91 void LyXCursor::y(int i)
92 {
93         y_ = i;
94 }
95
96
97 int LyXCursor::y() const
98 {
99         return y_;
100 }
101
102
103 void LyXCursor::row(Row * r)
104 {
105         row_ = r;
106 }
107
108
109 Row * LyXCursor::row()
110 {
111         return row_;
112 }
113
114
115 Row * LyXCursor::row() const
116 {
117         return row_;
118 }