X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FRenderGraphic.h;h=b41b82e61aa1c33753dd18e29d0cb34b2dadecab;hb=b73879691f816b0874d9dec0c09e2db7889c4e8e;hp=49db0e2c1f8d6b227f599b408e50beb7c5129ed0;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/insets/RenderGraphic.h b/src/insets/RenderGraphic.h index 49db0e2c1f..b41b82e61a 100644 --- a/src/insets/RenderGraphic.h +++ b/src/insets/RenderGraphic.h @@ -26,15 +26,17 @@ class RenderGraphic : public RenderBase public: RenderGraphic(Inset const *); RenderGraphic(RenderGraphic const &, Inset const *); - std::auto_ptr clone(Inset const *) const; + 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; }