]> git.lyx.org Git - lyx.git/blob - src/lyxrow.C
dont use pragma impementation and interface anymore
[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-2001 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(Paragraph * p)
23 {
24         par_ = p;
25 }
26
27
28 void Row::pos(lyx::pos_type p)
29 {
30         pos_ = p;
31 }
32
33
34 lyx::pos_type Row::pos() const
35 {
36         return pos_;
37 }
38
39
40 void Row::fill(int f)
41 {
42         fill_ = f;
43 }
44
45
46 int Row::fill() const
47 {
48         return fill_;
49 }
50
51
52 void Row::height(unsigned short h)
53 {
54         height_ = h;
55 }
56
57
58 void Row::width(unsigned int w)
59 {
60         width_ = w;
61 }
62
63
64 unsigned int Row::width() const
65 {
66         return width_;
67 }
68
69
70 void Row::ascent_of_text(unsigned short a)
71 {
72         ascent_of_text_ = a;
73 }
74
75
76 unsigned short Row::ascent_of_text() const
77 {
78         return ascent_of_text_;
79 }
80
81
82 void Row::top_of_text(unsigned int top)
83 {
84         top_of_text_ = top;
85 }
86
87  
88 unsigned int Row::top_of_text() const
89 {
90         return top_of_text_;
91 }
92
93  
94 void Row::baseline(unsigned int b)
95 {
96         baseline_ = b;
97 }
98
99
100 unsigned int Row::baseline() const
101 {
102         return baseline_;
103 }
104
105
106 void Row::next(Row * r)
107 {
108         next_ = r;
109 }
110
111
112 void Row::previous(Row * r)
113 {
114         previous_ = r;
115 }
116
117
118 Row * Row::previous() const
119 {
120         return previous_;
121 }