4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef PREVIEWIMAGE_H
13 #define PREVIEWIMAGE_H
15 #include <boost/scoped_ptr.hpp>
20 namespace support { class FileName; }
29 /** ascent = height * ascent_frac
30 * descent = height * (1 - ascent_frac)
32 PreviewImage(PreviewLoader & parent,
33 std::string const & latex_snippet,
34 support::FileName const & bitmap_file,
40 std::string const & snippet() const;
48 /** If the image is not yet loaded (WaitingToLoad), then this method
51 Image const * image() const;
54 /// Use the Pimpl idiom to hide the internals.
56 /// The pointer never changes although *pimpl_'s contents may.
57 boost::scoped_ptr<Impl> const pimpl_;
60 } // namespace graphics
63 #endif // PREVIEWIMAGE_H