]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.h
Further cleanup of InsetFlex, InsetCollapsable and InsetLayout:
[lyx.git] / src / BufferList.h
index cdba073c99ec6acc37da0d862781f323b9a4f339..2e62754ee7a7ab0c8f13e7e24ee9b1ddd87ef71d 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "support/docstring.h"
 
-#include <boost/utility.hpp>
+#include <boost/noncopyable.hpp>
 
 #include <vector>
 
@@ -81,6 +81,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.