]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
remove unused code
[lyx.git] / src / buffer.h
index f380c62403db89e28993395266e9ec51dde932b1..14ad3ac9f0ae9e4caa3208193d1df49614cdcf39 100644 (file)
 #include "lyxvc.h"
 #include "bufferparams.h"
 #include "texrow.h"
+#include "ParagraphList.h"
 #include "paragraph.h"
 
+#include <boost/scoped_ptr.hpp>
 #include <boost/shared_ptr.hpp>
 
 class BufferView;
+class Counters;
 class LyXRC;
 class TeXErrors;
 class LaTeXFeatures;
@@ -277,7 +280,7 @@ public:
        ///
        std::vector<std::pair<string, string> > const getBibkeyList() const;
        ///
-       std::vector<string> const getLabelList();
+       std::vector<string> const getLabelList() const;
 
        /** This will clearly have to change later. Later we can have more
            than one user per buffer. */
@@ -301,7 +304,7 @@ public:
            This is a linked list of paragraph, this list holds the
            whole contents of the document.
         */
-       Paragraph * paragraph;
+       ParagraphList paragraphs;
 
        /// LyX version control object.
        LyXVC lyxvc;
@@ -316,6 +319,9 @@ public:
 
        /// Used when typesetting to place errorboxes.
        TexRow texrow;
+       /// Buffer-wide counter array
+       Counters & counters() const;
+       
 private:
        /// is save needed
        mutable bool lyx_clean;
@@ -349,6 +355,9 @@ private:
        */
        BufferView * users;
 
+       /// The pointer is const although its contents may not be
+       boost::scoped_ptr<Counters> const ctrs;
+       
 public:
        ///
        class inset_iterator {
@@ -414,7 +423,7 @@ public:
 
        ///
        inset_iterator inset_iterator_begin() {
-               return inset_iterator(paragraph);
+               return inset_iterator(&*paragraphs.begin());
        }
        ///
        inset_iterator inset_iterator_end() {
@@ -422,7 +431,7 @@ public:
        }
        ///
        inset_iterator inset_const_iterator_begin() const {
-               return inset_iterator(paragraph);
+               return inset_iterator(&*paragraphs.begin());
        }
        ///
        inset_iterator inset_const_iterator_end() const {