]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.h
Fix InsetInclude properly. Data is now stored in an InsetCommandParams
[lyx.git] / src / graphics / GraphicsCache.h
index 0f95801d097049c0ac657beb35b490d2dd2c6573..41427e07b33ce3e72609f662df7672a8765e5642 100644 (file)
@@ -1,34 +1,34 @@
 // -*- C++ -*-
 /**
- *  \file GraphicsCache.h
- *  Copyright 2002 the LyX Team
- *  Read the file COPYING
+ * \file GraphicsCache.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Baruch Even <baruch.even@writeme.com>
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Baruch Even
+ * \author Angus Leeming
  *
- *  grfx::Cache is the manager of the image cache.
- *  It is responsible for creating the grfx::CacheItem's and maintaining them.
+ * Full author contact details are available in file CREDITS.
  *
- *  grfx::Cache is a singleton class. It is possible to have only one
- *  instance of it at any moment.
+ * lyx::graphics::Cache is the manager of the image cache.
+ * It is responsible for creating the lyx::graphics::CacheItem's
+ * and maintaining them.
+ *
+ * lyx::graphics::Cache is a singleton class. It is possible to have only one
+ * instance of it at any moment.
  */
 
 #ifndef GRAPHICSCACHE_H
 #define GRAPHICSCACHE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "LString.h"
+#include "support/std_string.h"
 #include <vector>
 #include <boost/utility.hpp>
 #include <boost/scoped_ptr.hpp>
 #include <boost/shared_ptr.hpp>
 
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 class CacheItem;
 
@@ -45,10 +45,10 @@ public:
        std::vector<string> loadableFormats() const;
 
        /// Add a graphics file to the cache.
-       void add(string const & file);
+       void add(string const & file) const;
 
        /// Remove a file from the cache.
-       void remove(string const & file);
+       void remove(string const & file) const;
 
        /// Returns \c true if the file is in the cache.
        bool inCache(string const & file) const;
@@ -57,7 +57,7 @@ public:
         *  Returns an empty container if there is no such item.
         *
         *  IMPORTANT: whatever uses an image must make a local copy of this
-        *  GraphicPtr. The boost::shared_ptr<>::use_count() function is
+        *  ItemPtr. The boost::shared_ptr<>::use_count() function is
         *  used to ascertain whether or not to remove the item from the cache
         *  when remove(file) is called.
         *
@@ -81,6 +81,7 @@ private:
        boost::scoped_ptr<Impl> const pimpl_;
 };
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
 
 #endif // GRAPHICSCACHE_H