2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
19 #include "support/types.h"
30 void par(Paragraph * p);
34 Paragraph * par() const;
36 void pos(lyx::pos_type p);
38 lyx::pos_type pos() const;
44 void height(unsigned short h);
46 unsigned short height() const;
48 void width(unsigned int w);
50 unsigned int width() const;
52 void ascent_of_text(unsigned short a);
54 unsigned short ascent_of_text() const;
56 void top_of_text(unsigned int top);
58 unsigned int top_of_text() const;
60 void baseline(unsigned int b);
62 unsigned int baseline() const;
68 void previous(Row * r);
70 Row * previous() const;
76 /** what is missing to a full row can be negative.
77 Needed for hfills, flushright, block etc. */
80 unsigned short height_;
83 /// ascent from baseline including prelude space
84 unsigned short ascent_of_text_;
85 /// the top of the real text in the row
86 unsigned int top_of_text_;
88 unsigned int baseline_;
97 Paragraph * Row::par()
104 Paragraph * Row::par() const
111 unsigned short Row::height() const
118 Row * Row::next() const