X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsLoader.h;h=c4ed587f66ca57ac7494835e81723050d441a462;hb=06254d11dfdf670fab3548dc2a2674e7a261262c;hp=ab3d686c24c44e689de21ead5bfd8bda7ef4ccff;hpb=686f1e276f013e2dc56e3025798c7131bef173f5;p=lyx.git diff --git a/src/graphics/GraphicsLoader.h b/src/graphics/GraphicsLoader.h index ab3d686c24..c4ed587f66 100644 --- a/src/graphics/GraphicsLoader.h +++ b/src/graphics/GraphicsLoader.h @@ -26,10 +26,12 @@ #include "GraphicsTypes.h" -#include #include namespace lyx { + +namespace support { class FileName; } + namespace graphics { class Image; @@ -40,29 +42,27 @@ public: /// Must use the reset methods to make this instance usable. Loader(); /// The image is not transformed, just displayed as-is. - Loader(std::string const & file_with_path, DisplayType = ColorDisplay); + Loader(support::FileName const & file_with_path, DisplayType = ColorDisplay); /// The image is transformed before display. - Loader(std::string const & file_with_path, Params const &); + Loader(support::FileName const & file_with_path, Params const &); /// Loader(Loader const &); - - /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy. + /// Needed for the pimpl ~Loader(); Loader & operator=(Loader const &); /// The file can be changed, or the display params, or both. - void reset(std::string const & file_with_path, + void reset(support::FileName const & file_with_path, DisplayType = ColorDisplay) const; /// - void reset(std::string const & file_with_path, Params const &) const; + void reset(support::FileName const & file_with_path, Params const &) const; /// void reset(Params const &) const; /// Returns the absolute path of the loaded (loading?) file. - std::string const & filename() const; + support::FileName const & filename() const; /// - bool empty() const { return filename().empty(); } /** starting loading of the image is done by a urgency-based * decision. Here we only call LoaderQueue::touch to request it. @@ -76,7 +76,7 @@ public: void startMonitoring() const; /// bool monitoring() const; - /** Returns the check sum of filename() so that, for example, you can + /** Returns the check checksum of filename() so that, for example, you can * ascertain whether to output a new PostScript version of the file * for a LaTeX run. */ @@ -102,7 +102,7 @@ private: /// Use the Pimpl idiom to hide the internals. class Impl; /// The pointer never changes although *pimpl_'s contents may. - boost::scoped_ptr const pimpl_; + Impl * const pimpl_; }; } // namespace graphics