]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewImage.h
Remove obsolete comment
[lyx.git] / src / graphics / PreviewImage.h
index b42630a7ce2d8999e10e866d0a75f2898d5b37dc..bea2553eebcbc2692c0350db0c1eb3495b4f006a 100644 (file)
@@ -1,23 +1,25 @@
 // -*- C++ -*-
 /**
- *  \file PreviewImage.h
+ * \file PreviewImage.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef PREVIEWIMAGE_H
 #define PREVIEWIMAGE_H
 
-#include "LString.h"
-#include <boost/scoped_ptr.hpp>
-
-class InsetOld;
+#include "support/strfwd.h"
 
 namespace lyx {
+
+namespace support { class FileName; }
+
+class Dimension;
+
 namespace graphics {
 
 class PreviewLoader;
@@ -29,31 +31,31 @@ public:
         *  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();
 
        ///
-       string const & snippet() const;
+       std::string const & snippet() const;
        ///
-       int ascent() const;
-       ///
-       int descent() const;
-       ///
-       int width() const;
+       Dimension dim() const;
 
        /** If the image is not yet loaded (WaitingToLoad), then this method
         *  triggers that.
         */
        Image const * image() const;
+       ///
+       support::FileName const & filename() const;
+
+       PreviewLoader & previewLoader() const;
 
 private:
        /// Use the Pimpl idiom to hide the internals.
        class Impl;
        /// The pointer never changes although *pimpl_'s contents may.
-       boost::scoped_ptr<Impl> const pimpl_;
+       Impl * const pimpl_;
 };
 
 } // namespace graphics