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