]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.h
C++11 supports thread-safe initialization of statics
[lyx.git] / src / graphics / GraphicsCacheItem.h
index 34dad4b26559c602cd4d0b3ad9a8da43a41cdd31..289b827a4fff15f5049d232e6b278a2d2bbbaa32 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "GraphicsTypes.h"
 
-#include <boost/signal.hpp>
+#include <boost/signals2.hpp>
 
 
 namespace lyx {
@@ -53,6 +53,9 @@ public:
        ///
        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;
 
@@ -63,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.
         */
@@ -82,10 +85,10 @@ public:
        /** Connect and you'll be informed when the loading status of the image
         *  changes.
         */
-       typedef boost::signal<void()> sig_type;
+       typedef boost::signals2::signal<void()> sig_type;
        typedef sig_type::slot_type slot_type;
        ///
-       boost::signals::connection connect(slot_type const &) const;
+       boost::signals2::connection connect(slot_type const &) const;
 
 private:
        /// noncopyable