* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team
+ * Copyright 1995-2001 The LyX Team
*
* ====================================================== */
#include <list>
-class LyXParagraph;
+class Paragraph;
// Controls correspondance between paragraphs and the generated LaTeX file
class TexRow {
void reset();
/// Define what paragraph and position the next row will represent
- void start(LyXParagraph * par, int pos);
+ void start(Paragraph * par, int pos);
/// Insert node when line is completed
void newline();
/// Returns paragraph id and position from a row number
- void getIdFromRow(int row, int & id, int & pos) const;
+ bool getIdFromRow(int row, int & id, int & pos) const;
/// Appends another TexRow
TexRow & operator+= (TexRow const &);
/// Returns the number of rows in this texrow
int rows() const { return count; }
-private:
/// Linked list of items
class RowItem {
public:
int rownumber_;
};
///
- unsigned int count;
- ///
typedef std::list<RowItem> RowList;
///
+ void increasePos(int id, int pos) const;
+private:
+ ///
+ unsigned int count;
+ ///
mutable RowList rowlist;
/// Last paragraph
- LyXParagraph * lastpar;
+ Paragraph * lastpar;
/// Last position
int lastpos;