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>
26 /** ascent = height * ascent_frac
27 * descent = height * (1 - ascent_frac)
29 PreviewImage(PreviewLoader & parent,
30 std::string const & latex_snippet,
31 std::string const & bitmap_file,
37 std::string const & snippet() const;
45 /** If the image is not yet loaded (WaitingToLoad), then this method
48 Image const * image() const;
51 /// Use the Pimpl idiom to hide the internals.
53 /// The pointer never changes although *pimpl_'s contents may.
54 boost::scoped_ptr<Impl> const pimpl_;
57 } // namespace graphics
60 #endif // PREVIEWIMAGE_H