]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewImage.C
* filetools.[Ch]: Make functions that start with a capital
[lyx.git] / src / graphics / PreviewImage.C
index bd96232e734e89bed30c7fba1aa3bd209ecbf017..6a057d27f3e8409cd8bb70cf53287426f35957f3 100644 (file)
@@ -1,29 +1,34 @@
 /**
- *  \file PreviewImage.C
+ * \file PreviewImage.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
 #include "PreviewImage.h"
-#include "PreviewLoader.h"
 #include "GraphicsImage.h"
 #include "GraphicsLoader.h"
+#include "PreviewLoader.h"
 
 #include "support/lyxlib.h"
 
 #include <boost/bind.hpp>
-#include <boost/signals/trackable.hpp>
+
+namespace support = lyx::support;
+
+using std::string;
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
-struct PreviewImage::Impl : public boost::signals::trackable {
+class PreviewImage::Impl : public boost::signals::trackable {
+public:
        ///
        Impl(PreviewImage & p, PreviewLoader & l,
             string const & s, string const & f, double af);
@@ -112,7 +117,7 @@ PreviewImage::Impl::Impl(PreviewImage & p, PreviewLoader & l,
 
 PreviewImage::Impl::~Impl()
 {
-       lyx::unlink(iloader_.filename());
+       support::unlink(iloader_.filename());
 }
 
 
@@ -145,10 +150,11 @@ void PreviewImage::Impl::statusChanged()
                break;
 
        case Ready:
-               lyx::unlink(iloader_.filename());
-               ploader_.emitSignal(parent_);
+               support::unlink(iloader_.filename());
                break;
        }
+       ploader_.emitSignal(parent_);
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx