X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsCacheItem.h;h=481e4b117a6a770f132daa2c4125f46644ccf547;hb=f345feecede25b164502abdacf893a36de9ef4ae;hp=cceee96f32b028e1634305a4a8a6e8682eae9aed;hpb=d33cedef34146407ff9c8a7d45a091bceca74bdd;p=lyx.git diff --git a/src/graphics/GraphicsCacheItem.h b/src/graphics/GraphicsCacheItem.h index cceee96f32..481e4b117a 100644 --- a/src/graphics/GraphicsCacheItem.h +++ b/src/graphics/GraphicsCacheItem.h @@ -30,7 +30,6 @@ #include "GraphicsTypes.h" -#include #include @@ -48,13 +47,15 @@ class CacheItem { public: /// CacheItem(support::FileName const & file); - - /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy. + /// Needed for the pimpl ~CacheItem(); /// support::FileName const & filename() const; + /// Try to load a display format. + bool tryDisplayFormat() const; + /// It's in the cache. Now start the loading process. void startLoading() const; @@ -65,7 +66,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. */ @@ -96,9 +97,8 @@ 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