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