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 "paragraph.h"
27 void par(Paragraph * p);
31 Paragraph * par() const;
33 void pos(Paragraph::size_type p);
35 Paragraph::size_type pos() const;
41 void height(unsigned short h);
43 unsigned short height() const;
45 void width(unsigned int w);
47 unsigned int width() const;
49 void ascent_of_text(unsigned short a);
51 unsigned short ascent_of_text() const;
53 void baseline(unsigned int b);
55 unsigned int baseline() const;
61 void previous(Row * r);
63 Row * previous() const;
68 Paragraph::size_type pos_;
69 /** what is missing to a full row can be negative.
70 Needed for hfills, flushright, block etc. */
73 unsigned short height_;
77 unsigned short ascent_of_text_;
79 unsigned int baseline_;
88 Paragraph * Row::par()
95 Paragraph * Row::par() const
102 unsigned short Row::height() const
109 Row * Row::next() const