]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.h
cleanup and reorder initialisation code of GuiView and GuiToolbars. Move some things...
[lyx.git] / src / BufferList.h
index 895dc46ee55211daf779c3fc6f154e878bb9b14a..179cc358bc2af2d1400b10704d870697ddccfa87 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "support/docstring.h"
 
-#include <boost/noncopyable.hpp>
-
 #include <vector>
 
 
@@ -28,7 +26,7 @@ class OutputParams;
  * The class holds all all open buffers, and handles construction
  * and deletions of new ones.
  */
-class BufferList : boost::noncopyable {
+class BufferList {
 public:
        typedef std::vector<Buffer *>::iterator iterator;
        typedef std::vector<Buffer *>::const_iterator const_iterator;
@@ -81,6 +79,8 @@ public:
        /// returns true if the buffer is loaded
        bool isLoaded(Buffer const * b) const;
 
+       /// return index of named buffer in buffer list
+       int bufferNum(std::string const & name) const;
        /// returns a pointer to the buffer with the given name.
        Buffer * getBuffer(std::string const &);
        /// returns a pointer to the buffer with the given number.
@@ -104,6 +104,10 @@ public:
        void setCurrentAuthor(docstring const & name, docstring const & email);
 
 private:
+       /// noncopiable
+       BufferList(BufferList const &);
+       void operator=(BufferList const &);
+
        /// ask to save a buffer on quit, returns false if should cancel
        bool quitWriteBuffer(Buffer * buf);