]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.C
work around for bug reported by Mario Morandini
[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), x_fix_(0), y_(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::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() const
104 {
105         return row_;
106 }