]> git.lyx.org Git - lyx.git/blob - src/lyxrow.h
more changes, read the Changelog
[lyx.git] / src / lyxrow.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  * 
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2000 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LYXROW_H
13 #define LYXROW_H
14
15 #include "lyxparagraph.h"
16
17 ///
18 class Row {
19 public:
20         ///
21         Row();
22         ///
23         void par(LyXParagraph * p);
24         ///
25         LyXParagraph * par();
26         ///
27         LyXParagraph * par() const;
28         ///
29         void pos(LyXParagraph::size_type p);
30         ///
31         LyXParagraph::size_type pos() const;
32         ///
33         void fill(int f);
34         ///
35         int fill() const;
36         ///
37         void height(unsigned short h);
38         ///
39         unsigned short height() const;
40         ///
41         void width(unsigned int w);
42         ///
43         unsigned int width() const;
44         ///
45         void ascent_of_text(unsigned short a);
46         ///
47         unsigned short ascent_of_text() const;
48         ///
49         void baseline(unsigned int b);
50         ///
51         unsigned int baseline() const;
52         ///
53         void next(Row * r);
54         ///
55         Row * next() const;
56         ///
57         void previous(Row * r);
58         ///
59         Row * previous() const;
60 private:
61         ///
62         LyXParagraph * par_;
63         ///
64         LyXParagraph::size_type pos_;
65         /** what is missing to a full row can be negative.
66           Needed for hfills, flushright, block etc. */
67         mutable int fill_;
68         ///
69         unsigned short height_;
70         ///
71         unsigned int width_;
72         ///
73         unsigned short ascent_of_text_;
74         ///
75         unsigned int baseline_;
76         ///
77         Row * next_;
78         ///
79         Row * previous_;
80 };
81
82 #endif