]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewImage.C
Purely mechanical: move fragile into LatexRunParams.
[lyx.git] / src / graphics / PreviewImage.C
index 1b5d8c13ba23a07e59031e0a38027322855a54e2..bd96232e734e89bed30c7fba1aa3bd209ecbf017 100644 (file)
@@ -1,17 +1,15 @@
 /**
  *  \file PreviewImage.C
- *  Copyright 2002 the LyX Team
- *  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 <leeming@lyx.org>
+ * \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"
@@ -32,7 +30,7 @@ struct PreviewImage::Impl : public boost::signals::trackable {
        ///
        ~Impl();
        ///
-       Image const * image(Inset const &, BufferView const &);
+       Image const * image();
        ///
        void statusChanged();
 
@@ -95,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();
 }
 
 
@@ -119,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();
 }