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 * ====================================================== */
15 #include "support/types.h"
26 void par(Paragraph * p);
30 Paragraph * par() const;
32 void pos(lyx::pos_type p);
34 lyx::pos_type pos() const;
40 void height(unsigned short h);
42 unsigned short height() const;
44 void width(unsigned int w);
46 unsigned int width() const;
48 void ascent_of_text(unsigned short a);
50 unsigned short ascent_of_text() const;
52 void top_of_text(unsigned int top);
54 unsigned int top_of_text() const;
56 void baseline(unsigned int b);
58 unsigned int baseline() const;
64 void previous(Row * r);
66 Row * previous() const;
72 /** what is missing to a full row can be negative.
73 Needed for hfills, flushright, block etc. */
76 unsigned short height_;
79 /// ascent from baseline including prelude space
80 unsigned short ascent_of_text_;
81 /// the top of the real text in the row
82 unsigned int top_of_text_;
84 unsigned int baseline_;
93 Paragraph * Row::par()
100 Paragraph * Row::par() const
107 unsigned short Row::height() const
114 Row * Row::next() const