1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
1999-11-04 01:40:20 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
2000-03-16 04:29:22 +00:00
|
|
|
* Copyright 1995-2000 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-11-04 01:40:20 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
#ifndef LYXROW_H
|
|
|
|
#define LYXROW_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
#include "lyxparagraph.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
struct Row {
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXParagraph * par;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXParagraph::size_type pos;
|
1999-09-27 18:44:28 +00:00
|
|
|
/** what is missing to a full row can be negative.
|
|
|
|
Needed for hfills, flushright, block etc. */
|
2000-01-13 16:28:54 +00:00
|
|
|
mutable int fill;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
unsigned short height;
|
|
|
|
///
|
|
|
|
unsigned short ascent_of_text;
|
2000-04-26 13:57:28 +00:00
|
|
|
///
|
|
|
|
unsigned int baseline;
|
|
|
|
///
|
|
|
|
Row()
|
|
|
|
: par(0), pos(0), fill(0), height(0),
|
|
|
|
ascent_of_text(0), baseline(0), next(0), previous(0)
|
|
|
|
{}
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
Row * next;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
Row * previous;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|