X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FPreviewImage.h;h=2a112b76a169e1e6818eb699b0de323e4504f4bf;hb=9d00e2ec0a26dba68b90252b7fe8c02e2e448b28;hp=b42630a7ce2d8999e10e866d0a75f2898d5b37dc;hpb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;p=lyx.git diff --git a/src/graphics/PreviewImage.h b/src/graphics/PreviewImage.h index b42630a7ce..2a112b76a1 100644 --- a/src/graphics/PreviewImage.h +++ b/src/graphics/PreviewImage.h @@ -1,23 +1,25 @@ // -*- C++ -*- /** - * \file PreviewImage.h + * \file PreviewImage.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Angus Leeming * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef PREVIEWIMAGE_H #define PREVIEWIMAGE_H -#include "LString.h" -#include - -class InsetOld; +#include "support/strfwd.h" namespace lyx { + +namespace support { class FileName; } + +class Dimension; + namespace graphics { class PreviewLoader; @@ -29,20 +31,16 @@ 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; - /// - int ascent() const; - /// - int descent() const; + std::string const & snippet() const; /// - int width() const; + Dimension dim() const; /** If the image is not yet loaded (WaitingToLoad), then this method * triggers that. @@ -53,7 +51,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