]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewImage.C
If the graphics loader has a copy c-tor it should have copy assignment that does...
[lyx.git] / src / graphics / PreviewImage.C
index f7e74d3554d8dacec06cd956df58fcd7a740154a..bd96232e734e89bed30c7fba1aa3bd209ecbf017 100644 (file)
@@ -1,18 +1,15 @@
 /**
  *  \file PreviewImage.C
- *  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
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "PreviewImage.h"
 #include "PreviewLoader.h"
 #include "GraphicsImage.h"
@@ -33,7 +30,7 @@ struct PreviewImage::Impl : public boost::signals::trackable {
        ///
        ~Impl();
        ///
-       Image const * image(Inset const &, BufferView const &);
+       Image const * image();
        ///
        void statusChanged();
 
@@ -96,10 +93,9 @@ int PreviewImage::width() const
 }
 
 
-Image const * PreviewImage::image(Inset const & inset,
-                                 BufferView const & bv) const
+Image const * PreviewImage::image() const
 {
-       return pimpl_->image(inset, bv);
+       return pimpl_->image();
 }
 
 
@@ -120,11 +116,10 @@ PreviewImage::Impl::~Impl()
 }
 
 
-Image const * PreviewImage::Impl::image(Inset const & inset,
-                                       BufferView const & bv)
+Image const * PreviewImage::Impl::image()
 {
        if (iloader_.status() == WaitingToLoad)
-               iloader_.startLoading(inset, bv);
+               iloader_.startLoading();
 
        return iloader_.image();
 }