// -*- 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>
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;
* 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.
*