]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
remove unused code
[lyx.git] / src / buffer.h
index 5f03cab458dd5f2cd2657c9e32564f8bdb7697d7..14ad3ac9f0ae9e4caa3208193d1df49614cdcf39 100644 (file)
 #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;
@@ -278,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. */
@@ -317,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;
@@ -350,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 {