+ /// Prepare the preview if preview is enabled.
+ /// \param forexport: whether this is intended for export
+ /// If so, we ignore LyXRC and wait for the image to be generated.
+ void preparePreview(DocIterator const & pos,
+ bool forexport = false) const;
+ /// like reloadPreview, but forces load
+ /// used by image export
+ void loadPreview(DocIterator const & pos) const;