X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FPreviewImage.h;h=6ec29a36badd1dbb3b84b009d59e12967f9c17a3;hb=4c3e5463752eb90fe5e69716fcbd7ea2ccc92bcd;hp=1289fde12f12cc841cdcfdde55bcd76ec8dfebd6;hpb=236ea81bc5c0ce7101c9460d1ee97b8f3c9be9df;p=lyx.git diff --git a/src/graphics/PreviewImage.h b/src/graphics/PreviewImage.h index 1289fde12f..6ec29a36ba 100644 --- a/src/graphics/PreviewImage.h +++ b/src/graphics/PreviewImage.h @@ -12,12 +12,12 @@ #ifndef PREVIEWIMAGE_H #define PREVIEWIMAGE_H -#include "support/std_string.h" -#include - -class InsetOld; +#include "support/strfwd.h" namespace lyx { + +namespace support { class FileName; } + namespace graphics { class PreviewLoader; @@ -29,14 +29,14 @@ public: * descent = height * (1 - ascent_frac) */ PreviewImage(PreviewLoader & parent, - string const & latex_snippet, - string const & bitmap_file, + std::string const & latex_snippet, + support::FileName const & bitmap_file, double ascent_frac); /// ~PreviewImage(); /// - string const & snippet() const; + std::string const & snippet() const; /// int ascent() const; /// @@ -53,7 +53,7 @@ private: /// Use the Pimpl idiom to hide the internals. class Impl; /// The pointer never changes although *pimpl_'s contents may. - boost::scoped_ptr const pimpl_; + Impl * const pimpl_; }; } // namespace graphics