};
-// FIXME THREAD
Cache & Cache::get()
{
// Now return the cache
return fmts;
// The formats recognised by LyX
- Formats::const_iterator begin = formats.begin();
- Formats::const_iterator end = formats.end();
+ Formats::const_iterator begin = theFormats().begin();
+ Formats::const_iterator end = theFormats().end();
// The formats natively loadable.
vector<string> nformat = frontend::loadableImageFormats();
-
+
vector<string>::const_iterator it = nformat.begin();
for (; it != nformat.end(); ++it) {
for (Formats::const_iterator fit = begin; fit != end; ++fit) {
}
-void Cache::add(FileName const & file) const
+void Cache::add(FileName const & file, FileName const & doc_file) const
{
// Is the file in the cache already?
if (inCache(file)) {
return;
}
- pimpl_->cache[file] = ItemPtr(new CacheItem(file));
+ pimpl_->cache[file] = ItemPtr(new CacheItem(file, doc_file));
}