]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/Previews.h
Add context menu for outline operations. Choice of words might not be best.
[lyx.git] / src / graphics / Previews.h
index db666d11bef8322f35304bea04e98b6892d396c8..0a50e29e36b3c64d679eedb90b053f1bfe99464f 100644 (file)
@@ -8,25 +8,23 @@
  *
  * Full author contact details are available in file CREDITS.
  *
- * lyx::graphics::Previews is a singleton class that stores the
- * lyx::graphics::PreviewLoader for each buffer requiring one.
+ * graphics::Previews is a singleton class that stores the
+ * graphics::PreviewLoader for each buffer requiring one.
  */
 
 #ifndef PREVIEWS_H
 #define PREVIEWS_H
 
-#include <boost/utility.hpp>
-#include <boost/scoped_ptr.hpp>
+namespace lyx {
 
 class Buffer;
 class LyXRC_PreviewStatus;
 
-namespace lyx {
 namespace graphics {
 
 class PreviewLoader;
 
-class Previews : boost::noncopyable {
+class Previews {
 public:
        /// a wrapper for lyxrc.preview
        static LyXRC_PreviewStatus status();
@@ -49,6 +47,10 @@ public:
        void generateBufferPreviews(Buffer const & buffer) const;
 
 private:
+       /// noncopyable
+       Previews(Previews const &);
+       void operator=(Previews const &);
+
        /** Make the c-tor, d-tor private so we can control how many objects
         *  are instantiated.
         */
@@ -58,7 +60,7 @@ private:
        /// Use the Pimpl idiom to hide the internals.
        class Impl;
        /// The pointer never changes although *pimpl_'s contents may.
-       boost::scoped_ptr<Impl> const pimpl_;
+       Impl * const pimpl_;
 };
 
 } // namespace graphics