// -*- C++ -*-
/**
- * \file PreviewImage.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * \file PreviewImage.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
*/
#ifndef PREVIEWIMAGE_H
#define PREVIEWIMAGE_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "LString.h"
#include <boost/scoped_ptr.hpp>
+#include <string>
+
+namespace lyx {
+
+namespace support { class FileName; }
-namespace grfx {
+namespace graphics {
class PreviewLoader;
class Image;
* descent = height * (1 - ascent_frac)
*/
PreviewImage(PreviewLoader & parent,
- string const & latex_snippet,
- string const & bitmap_file,
+ std::string const & latex_snippet,
+ support::FileName const & bitmap_file,
double ascent_frac);
///
~PreviewImage();
- /// We are explicit about when we begin the loading process.
- void startLoading();
-
///
- string const & snippet() const;
+ std::string const & snippet() const;
///
int ascent() const;
///
int descent() const;
///
int width() const;
- ///
+
+ /** If the image is not yet loaded (WaitingToLoad), then this method
+ * triggers that.
+ */
Image const * image() const;
private:
boost::scoped_ptr<Impl> const pimpl_;
};
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx
#endif // PREVIEWIMAGE_H