X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FPreviewImage.h;h=6b5ac7e66cd1d1e0495a0b84a5aa37570fa7adfd;hb=4ddc9e2501400f8bdc35d4d1fe56f39c49e82115;hp=6ec29a36badd1dbb3b84b009d59e12967f9c17a3;hpb=98ddc514dabfb2556fdfc6c9a8531daf838bebbb;p=lyx.git diff --git a/src/graphics/PreviewImage.h b/src/graphics/PreviewImage.h index 6ec29a36ba..6b5ac7e66c 100644 --- a/src/graphics/PreviewImage.h +++ b/src/graphics/PreviewImage.h @@ -18,8 +18,11 @@ namespace lyx { namespace support { class FileName; } +class Dimension; + namespace graphics { +class Cache; class PreviewLoader; class Image; @@ -38,16 +41,16 @@ public: /// std::string const & snippet() const; /// - int ascent() const; - /// - int descent() const; - /// - int width() const; + Dimension dim() const; /** If the image is not yet loaded (WaitingToLoad), then this method * triggers that. */ Image const * image() const; + /// + support::FileName const & filename() const; + + PreviewLoader & previewLoader() const; private: /// Use the Pimpl idiom to hide the internals.