]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewedInset.h
The std::string mammoth path.
[lyx.git] / src / graphics / PreviewedInset.h
index 197ded4d77b9c77d6b88322d2f5304f2a5bcc4b9..991853b67fae9d8d09e8780b0ac3561f68a4c0d5 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef PREVIEWEDINSET_H
 #define PREVIEWEDINSET_H
 
-#include "support/std_string.h"
 #include <boost/signals/trackable.hpp>
 #include <boost/signals/connection.hpp>
 
@@ -42,7 +41,7 @@ public:
        /** Find the PreviewLoader, add a LaTeX snippet to it and
         *  start the loading process.
         */
-       void generatePreview();
+       void generatePreview(Buffer const &);
 
        /** Add a LaTeX snippet to the PreviewLoader but do not start the
         *  loading process.
@@ -73,14 +72,14 @@ private:
        void imageReady(PreviewImage const &) const;
 
        /// Does the owning inset want a preview?
-       virtual bool previewWanted() const = 0;
+       virtual bool previewWanted(Buffer const &) const = 0;
        /// a wrapper to Inset::latex
-       virtual string const latexString(Buffer const &) const = 0;
+       virtual std::string const latexString(Buffer const &) const = 0;
 
        ///
        InsetOld & inset_;
        ///
-       string snippet_;
+       std::string snippet_;
 
        /// We don't own this. Cached for efficiency reasons.
        mutable PreviewImage const * pimage_;