]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.h
Purely mechanical: move fragile into LatexRunParams.
[lyx.git] / src / graphics / GraphicsCache.h
index 0f95801d097049c0ac657beb35b490d2dd2c6573..ca4d02977679a7a34b0656f2c516f7df13a71395 100644 (file)
@@ -1,11 +1,13 @@
 // -*- C++ -*-
 /**
  *  \file GraphicsCache.h
- *  Copyright 2002 the LyX Team
- *  Read the file COPYING
+ * 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
+ *
+ * Full author contact details are available in file CREDITS
  *
  *  grfx::Cache is the manager of the image cache.
  *  It is responsible for creating the grfx::CacheItem's and maintaining them.
 #ifndef GRAPHICSCACHE_H
 #define GRAPHICSCACHE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "LString.h"
 #include <vector>
 #include <boost/utility.hpp>
@@ -45,10 +43,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 +55,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.
         *