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