]> git.lyx.org Git - features.git/blobdiff - src/texrow.h
read ChangeLog, a lot of whitespace changes. experimental use of libtool
[features.git] / src / texrow.h
index ef669d8890b24d876c2a395f86fb211cbeec3fd5..8d4017e9d3504fb04aa9f90bcde8531ec92efc2d 100644 (file)
@@ -16,6 +16,9 @@
 #pragma interface
 #endif
 
+#include <list>
+using std::list;
+
 class LyXParagraph;
 
 // Controls correspondance between paragraphs and the generated LaTeX file
@@ -24,38 +27,32 @@ public:
        ///
        TexRow() {
                count = 0;
-               next = 0;
                lastpar = 0;
                lastpos = -1;
        }
-       ///
-       ~TexRow() {
-               reset();
-       }
 
        /// Clears structure
        void reset();
 
        /// Define what paragraph and position the next row will represent
-       void start(LyXParagraph *par, int pos);
+       void start(LyXParagraph * 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);
+       void getIdFromRow(int row, int & id, int & pos);
 
        /// Appends another TexRow
-       TexRow & operator+= (const TexRow &);
+       TexRow & operator+= (TexRow const &);
 
 private:
        /// Linked list of items
-       struct TexRow_Item {
+       struct RowItem {
                ///
-               TexRow_Item() {
+               RowItem() {
                        id = -1;
                        pos = -1;
-                       next = 0;
                        rownumber = 0;
                }
 
@@ -65,13 +62,13 @@ private:
                int pos;
                ///
                int rownumber;
-               ///
-               TexRow_Item *next;
        };
        ///
        unsigned int count;
        ///
-       TexRow_Item *next;
+       typedef list<RowItem> RowList;
+       ///
+       RowList rowlist;
        /// Last paragraph
        LyXParagraph * lastpar;
        /// Last position