* \author Baruch Even
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "support/filetools.h"
-#include "frontends/lyx_gui.h"
-
#include <map>
-using namespace lyx::support;
+namespace support = lyx::support;
+
+using std::string;
+
-namespace grfx {
+namespace lyx {
+namespace graphics {
/** The cache contains one item per file, so use a map to find the
* cache item quickly by filename.
*/
typedef std::map<string, Cache::ItemPtr> CacheType;
-struct Cache::Impl {
+class Cache::Impl {
+public:
///
CacheType cache;
};
Cache::Cache()
- : pimpl_(new Impl())
+ : pimpl_(new Impl)
{}
void Cache::add(string const & file) const
{
- if (!AbsolutePath(file)) {
+ if (!support::absolutePath(file)) {
lyxerr << "Cache::add(" << file << "):\n"
<< "The file must be have an absolute path."
<< std::endl;
return it->second;
}
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx