]> git.lyx.org Git - lyx.git/blobdiff - src/texrow.h
fix typo that put too many include paths for most people
[lyx.git] / src / texrow.h
index 30dbbf26b9094080eb61079d512d060ad34f9d27..700bcd67dfff7a8e42265be55db2a5d4b154ce8e 100644 (file)
@@ -1,11 +1,11 @@
 // -*- C++ -*-
 /* This file is part of
- * ====================================================== 
- * 
+ * ======================================================
+ *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team
+ *           Copyright 1995-2001 The LyX Team
  *
  * ====================================================== */
 
@@ -18,7 +18,7 @@
 
 #include <list>
 
-class LyXParagraph;
+class Paragraph;
 
 // Controls correspondance between paragraphs and the generated LaTeX file
 class TexRow {
@@ -30,13 +30,13 @@ public:
        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 &);
@@ -44,7 +44,6 @@ public:
        /// Returns the number of rows in this texrow
        int rows() const { return count; }
 
-private:
        /// Linked list of items
        class RowItem {
        public:
@@ -83,15 +82,18 @@ private:
                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;
-       
+
 };
 #endif