]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.h
Fixed inset-text border redraw problem and hopefully recalc boostup.
[lyx.git] / src / graphics / GraphicsCache.h
index 847eedc7893265dde8ba4d78f9e2f988c54d31a9..b0c7e4f6e66f10453e3deeb2fba4a322daa2405d 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "LString.h"
 #include "GraphicsCacheItem.h"
-#include "support/utility.hpp"
+#include <boost/utility.hpp>
 
 /** GraphicsCache is the manager of the image cache.
     It is responsible of create the GraphicsCacheItem's and maintain them.
 */
 class GraphicsCache : public noncopyable {
 public:
-    /// Get the instance of the class.
-    static GraphicsCache * getInstance();
+       /// Get the instance of the class.
+       static GraphicsCache * getInstance();
 
-    /// Add a file to the cache.
-    GraphicsCacheItem * addFile(string const & filename);
+       /// Add a file to the cache.
+       GraphicsCacheItem * addFile(string const & filename);
 
 private:
-    /// Remove a cache item if it's count has gone to zero.
-    void removeFile(string const & filename);
-    
-    /// Private c-tor so we can control how many objects are instantiated.
-    GraphicsCache() {}
-
-    /// Private d-tor so that no-one will destroy us.
-    ~GraphicsCache();
-
-    /// Holder of the single instance of the class.
-    static GraphicsCache * singleton;
-    ///
-    typedef std::map<string, GraphicsCacheItem *> CacheType;
-    ///
-    CacheType cache;
-
-       // We need this so that an Item can tell the cache that it should be
-       // deleted. (to call removeFile).
-       // It also helps removing a warning gcc emits.
+       /// Remove a cache item if it's count has gone to zero.
+       void removeFile(string const & filename);
+       
+       /// Private c-tor so we can control how many objects are instantiated.
+       GraphicsCache() {}
+       
+       /// Private d-tor so that no-one will destroy us.
+       ~GraphicsCache();
+       
+       /// Holder of the single instance of the class.
+       static GraphicsCache * singleton;
+       ///
+       typedef std::map<string, GraphicsCacheItem *> CacheType;
+       ///
+       CacheType cache;
+       
+       /** We need this so that an Item can tell the cache that it should be
+           deleted. (to call removeFile).
+           It also helps removing a warning gcc emits. */
        friend class GraphicsCacheItem;
 };
 #endif