]> git.lyx.org Git - lyx.git/blob - src/lyxrow.C
some small stuff before the meeting begins for real
[lyx.git] / src / lyxrow.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 "lyxrow.h"
12
13
14 Row::Row()
15         : par_(0), pos_(0), fill_(0), height_(0),
16           ascent_of_text_(0), baseline_(0), next_(0), previous_(0)
17 {}
18
19
20 void Row::par(LyXParagraph * p)
21 {
22         par_ = p;
23 }
24
25
26 LyXParagraph * Row::par()
27 {
28         return par_;
29 }
30
31
32 LyXParagraph * Row::par() const
33 {
34         return par_;
35 }
36
37
38 void Row::pos(LyXParagraph::size_type p)
39 {
40         pos_ = p;
41 }
42
43
44 LyXParagraph::size_type Row::pos() const
45 {
46         return pos_;
47 }
48
49
50 void Row::fill(int f)
51 {
52         fill_ = f;
53 }
54
55
56 int Row::fill() const
57 {
58         return fill_;
59 }
60
61
62 void Row::height(unsigned short h)
63 {
64         height_ = h;
65 }
66
67
68 unsigned short Row::height() const
69 {
70         return height_;
71 }
72
73
74 void Row::ascent_of_text(unsigned short a)
75 {
76         ascent_of_text_ = a;
77 }
78
79
80 unsigned short Row::ascent_of_text() const
81 {
82         return ascent_of_text_;
83 }
84
85
86 void Row::baseline(unsigned int b)
87 {
88         baseline_ = b;
89 }
90
91
92 unsigned int Row::baseline() const
93 {
94         return baseline_;
95 }
96
97
98 void Row::next(Row * r)
99 {
100         next_ = r;
101 }
102
103
104 Row * Row::next() const
105 {
106         return next_;
107 }
108
109
110 void Row::previous(Row * r)
111 {
112         previous_ = r;
113 }
114
115
116 Row * Row::previous() const
117 {
118         return previous_;
119 }