#ifndef PREVIEWEDINSET_H
#define PREVIEWEDINSET_H
-#include "support/std_string.h"
#include <boost/signals/trackable.hpp>
#include <boost/signals/connection.hpp>
/** 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.
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_;