X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetExternal.h;h=497f1c653a7fa71846f95ee86c7d69124d0dadad;hb=e4c46abeb7385960c9dd42494e3c7c1f3e699b56;hp=75131182b982928eb2a29ec44b45cba77b821653;hpb=8171272d1fb56ef3509a82143c4aa1d4b31fa08e;p=lyx.git diff --git a/src/insets/InsetExternal.h b/src/insets/InsetExternal.h index 75131182b9..497f1c653a 100644 --- a/src/insets/InsetExternal.h +++ b/src/insets/InsetExternal.h @@ -17,9 +17,9 @@ #include "ExternalTemplate.h" #include "support/FileName.h" +#include "support/unique_ptr.h" -#include -#include +#include namespace lyx { @@ -90,7 +90,7 @@ private: class RenderBase; /// -class InsetExternal : public Inset, public boost::signals::trackable +class InsetExternal : public Inset, public boost::signals2::trackable { // Disable assignment operator, since it is not used, and it is too // complicated to implement it consistently with the copy constructor @@ -118,7 +118,7 @@ public: /// bool setMouseHover(BufferView const * bv, bool mouse_hover) const; /// - bool clickable(int, int) const { return true; } + bool clickable(BufferView const &, int, int) const { return true; } /// void addToToc(DocIterator const & di, bool output_active, UpdateType utype) const; @@ -169,7 +169,7 @@ private: /// The current params InsetExternalParams params_; /// The thing that actually draws the image on LyX's screen. - boost::scoped_ptr renderer_; + unique_ptr renderer_; /// changes color of the button when mouse enters/leaves this inset mutable std::map mouse_hover_; };