]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewedInset.h
The free_spacing patch and fix to the mess that Rob discovered.
[lyx.git] / src / graphics / PreviewedInset.h
index 3137a17d137b0d3a0757417d5e2fbec3a3efd2e9..5e400908603bbf54b0d0daee8f643fe9ea1bdff5 100644 (file)
@@ -1,11 +1,12 @@
 // -*- C++ -*-
 /**
  *  \file PreviewedInset.h
- *  Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming 
+ * \author Angus Leeming
  *
- * Full author contact details available in file CREDITS
+ * Full author contact details are available in file CREDITS
  *
  *  grfx::PreviewedInset is an abstract base class that can help insets to
  *  generate previews. The daughter class must instantiate three small
 #ifndef PREVIEWEDINSET_H
 #define PREVIEWEDINSET_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "LString.h"
-#include <boost/weak_ptr.hpp>
 #include <boost/signals/trackable.hpp>
 #include <boost/signals/connection.hpp>
 
@@ -63,14 +59,11 @@ public:
        /// If !previewReady() returns 0.
        PreviewImage const * pimage() const { return pimage_; }
 
-       ///
-       void setView(BufferView *);
-
 protected:
        /// Allow the daughter classes to cast up to the parent inset.
        Inset * inset() const { return &inset_; }
        ///
-       BufferView * view() const { return view_.get(); }
+       BufferView * view() const;
 
 private:
        /** This method is connected to the grfx::PreviewLoader::imageReady
@@ -87,9 +80,7 @@ private:
        Inset & inset_;
        ///
        string snippet_;
-       ///
-       boost::weak_ptr<BufferView> view_;
-       
+
        /// We don't own this. Cached for efficiency reasons.
        mutable PreviewImage const * pimage_;
        ///