]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsCache.C
(Herbert): discover the "Bounding Box" of non-(e)ps graphics files, and
[features.git] / src / graphics / GraphicsCache.C
index 9e37111ec99d72084ceb80357c8c3985693dc8b7..562b4d214ba526374c98111d7f2538f5c8020a65 100644 (file)
@@ -165,4 +165,25 @@ GCache::find(InsetGraphics const & inset) const
        return cache->end();
 }
 
+
+unsigned int GCache::raw_width(string const & filename) const
+{
+       CacheType::const_iterator it = cache->find(filename);
+       if (it == cache->end())
+               return 0;
+
+       return it->second->raw_width();
+}
+
+
+unsigned int GCache::raw_height(string const & filename) const
+{
+       CacheType::const_iterator it = cache->find(filename);
+       if (it == cache->end())
+               return 0;
+
+       return it->second->raw_height();
+}
+
 } // namespace grfx
+