X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FRenderGraphic.h;h=b41b82e61aa1c33753dd18e29d0cb34b2dadecab;hb=fd5d47d182a70de532225715a04b77fe4155aa18;hp=7bbb87496c852fafae5f15f290085e7c7ee53a80;hpb=bf33e3486930c4297b82d28a61d808de3b0362bf;p=lyx.git diff --git a/src/insets/RenderGraphic.h b/src/insets/RenderGraphic.h index 7bbb87496c..b41b82e61a 100644 --- a/src/insets/RenderGraphic.h +++ b/src/insets/RenderGraphic.h @@ -17,7 +17,6 @@ #include "graphics/GraphicsLoader.h" #include "graphics/GraphicsParams.h" -#include namespace lyx { @@ -27,17 +26,17 @@ class RenderGraphic : public RenderBase public: RenderGraphic(Inset const *); RenderGraphic(RenderGraphic const &, Inset const *); - std::auto_ptr clone(Inset const *) const; - - ~RenderGraphic() { loader_connection_.disconnect(); } + RenderBase * clone(Inset const *) const; /// compute the size of the object returned in dim - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// draw inset void draw(PainterInfo & pi, int x, int y) const; /// Refresh the info about which file to display and how to display it. void update(graphics::Params const & params); + /// Reloads the image if necessary + void reload() const; /// equivalent to dynamic_cast virtual RenderGraphic * asGraphic() { return this; } @@ -49,9 +48,6 @@ private: /// The stored data. graphics::Loader loader_; graphics::Params params_; - - // - boost::signals::connection loader_connection_; };