X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FPreviewLoader.h;h=272c4d361bd47e133498335d2ffa29f492643266;hb=649755f48180b0466cdf212178dc9bdcc5d18210;hp=70807e613c0157347ce97f11a551513568996327;hpb=21e908b8c49f0b5a7df1eca9b36d2632e0838880;p=lyx.git diff --git a/src/graphics/PreviewLoader.h b/src/graphics/PreviewLoader.h index 70807e613c..272c4d361b 100644 --- a/src/graphics/PreviewLoader.h +++ b/src/graphics/PreviewLoader.h @@ -18,11 +18,12 @@ #ifndef PREVIEWLOADER_H #define PREVIEWLOADER_H -#include +#include "ColorCode.h" +#include "support/signals.h" + #include -#include "support/docstring.h" -#include "ColorCode.h" +#include namespace lyx { @@ -39,8 +40,6 @@ public: * LaTeX file. */ PreviewLoader(Buffer const & buffer); - /// - ~PreviewLoader(); /** Is there an image already associated with this snippet of LaTeX? * If so, returns a pointer to it, else returns 0. @@ -68,11 +67,6 @@ public: /// Remove this snippet of LaTeX from the PreviewLoader. void remove(std::string const & latex_snippet) const; - /// Record math macro definitions added to the loader - void addMacroDef(docstring const & latex_snippet) const; - /// Has a math macro definition already been added to the loader? - bool hasMacroDef(docstring const & latex_snippet) const; - /** We have accumulated several latex snippets with status "InQueue". * Initiate their transformation into bitmap images. */ @@ -82,10 +76,10 @@ public: * has been created and is ready for loading through * lyx::graphics::PreviewImage::image(). */ - typedef boost::signal sig_type; - typedef sig_type::slot_type slot_type; + typedef signal sig; + typedef sig::slot_type slot; /// - boost::signals::connection connect(slot_type const &) const; + connection connect(slot const &) const; /** When PreviewImage has finished loading the image file into memory, * it tells the PreviewLoader to tell the outside world @@ -113,7 +107,7 @@ private: /// Use the Pimpl idiom to hide the internals. class Impl; /// The pointer never changes although *pimpl_'s contents may. - Impl * const pimpl_; + std::shared_ptr const pimpl_; }; } // namespace graphics