]> git.lyx.org Git - lyx.git/blob - src/lyxrow.C
copy some code over to allow work to start on prefs
[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 #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(Paragraph * p)
27 {
28         par_ = p;
29 }
30
31
32 void Row::pos(lyx::pos_type p)
33 {
34         pos_ = p;
35 }
36
37
38 lyx::pos_type Row::pos() const
39 {
40         return pos_;
41 }
42
43
44 void Row::fill(int f)
45 {
46         fill_ = f;
47 }
48
49
50 int Row::fill() const
51 {
52         return fill_;
53 }
54
55
56 void Row::height(unsigned short h)
57 {
58         height_ = h;
59 }
60
61
62 void Row::width(unsigned int w)
63 {
64         width_ = w;
65 }
66
67
68 unsigned int Row::width() const
69 {
70         return width_;
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 void Row::previous(Row * r)
105 {
106         previous_ = r;
107 }
108
109
110 Row * Row::previous() const
111 {
112         return previous_;
113 }