]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewImage.C
* src/LaTeX.C
[lyx.git] / src / graphics / PreviewImage.C
index 75d41634ced7a43394d54dc6f2bf9d2fccf2633e..050ca62de8694efddff57a0096829c00081e374b 100644 (file)
 #include "GraphicsLoader.h"
 #include "PreviewLoader.h"
 
+#include "support/filename.h"
 #include "support/lyxlib.h"
 
 #include <boost/bind.hpp>
 
-namespace support = lyx::support;
-
 using std::string;
 
 
 namespace lyx {
+
+using support::FileName;
+
 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);
+            string const & s, FileName const & f, double af);
        ///
        ~Impl();
        ///
@@ -53,7 +56,7 @@ struct PreviewImage::Impl : public boost::signals::trackable {
 
 PreviewImage::PreviewImage(PreviewLoader & l,
                           string const & s,
-                          string const & f,
+                          FileName const & f,
                           double af)
        : pimpl_(new Impl(*this, l, s, f, af))
 {}
@@ -105,7 +108,7 @@ Image const * PreviewImage::image() const
 
 PreviewImage::Impl::Impl(PreviewImage & p, PreviewLoader & l,
                         string const & s,
-                        string const & bf,
+                        FileName const & bf,
                         double af)
        : parent_(p), ploader_(l), iloader_(bf),
          snippet_(s), ascent_frac_(af)