4 * Read the file COPYING
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
11 #ifndef PREVIEWIMAGE_H
12 #define PREVIEWIMAGE_H
19 #include <boost/scoped_ptr.hpp>
31 /** ascent = height * ascent_frac
32 * descent = height * (1 - ascent_frac)
34 PreviewImage(PreviewLoader & parent,
35 string const & latex_snippet,
36 string const & bitmap_file,
42 string const & snippet() const;
50 /** If the image is not yet loaded (WaitingToLoad), then this method
52 * inset and bv are passed so we can choose to load only
53 * those insets that are visible.
55 Image const * image(Inset const & inset, BufferView const & bv) const;
58 /// Use the Pimpl idiom to hide the internals.
60 /// The pointer never changes although *pimpl_'s contents may.
61 boost::scoped_ptr<Impl> const pimpl_;
66 #endif // PREVIEWIMAGE_H