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 "support/strfwd.h"
19 namespace support { class FileName; }
31 /** ascent = height * ascent_frac
32 * descent = height * (1 - ascent_frac)
34 PreviewImage(PreviewLoader & parent,
35 std::string const & latex_snippet,
36 support::FileName const & bitmap_file,
42 std::string const & snippet() const;
44 Dimension dim() const;
46 /** If the image is not yet loaded (WaitingToLoad), then this method
49 Image const * image() const;
51 support::FileName const & filename() const;
53 PreviewLoader & previewLoader() const;
56 /// Use the Pimpl idiom to hide the internals.
58 /// The pointer never changes although *pimpl_'s contents may.
62 } // namespace graphics
65 #endif // PREVIEWIMAGE_H