]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewImage.C
Purely mechanical: move fragile into LatexRunParams.
[lyx.git] / src / graphics / PreviewImage.C
index c01db298b77eaac97a5a8a89d91b5e6ed8a45de2..bd96232e734e89bed30c7fba1aa3bd209ecbf017 100644 (file)
@@ -3,17 +3,13 @@
  * 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 are available in file CREDITS
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "PreviewImage.h"
 #include "PreviewLoader.h"
 #include "GraphicsImage.h"
@@ -34,7 +30,7 @@ struct PreviewImage::Impl : public boost::signals::trackable {
        ///
        ~Impl();
        ///
-       Image const * image(Inset const &, BufferView const &);
+       Image const * image();
        ///
        void statusChanged();
 
@@ -97,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();
 }
 
 
@@ -121,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();
 }