4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
7 * \author Angus Leeming <a.leeming@ic.ac.uk>
10 #ifndef PREVIEWIMAGE_H
11 #define PREVIEWIMAGE_H
18 #include <boost/scoped_ptr.hpp>
27 /** ascent = height * ascent_frac
28 * descent = height * (1 - ascent_frac)
30 PreviewImage(PreviewLoader & parent,
31 string const & latex_snippet,
32 string const & bitmap_file,
37 /// We are explicit about when we begin the loading process.
41 string const & snippet() const;
49 Image const * image() const;
52 /// Use the Pimpl idiom to hide the internals.
54 /// The pointer never changes although *pimpl_'s contents may.
55 boost::scoped_ptr<Impl> const pimpl_;
60 #endif // PREVIEWIMAGE_H