X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Frender_graphic.h;h=3c41cc277e3b9d3c79864839a8c4408f7196fee2;hb=10ba1b8918e7da14334bb5573ce2a707671c8b51;hp=447e104eb2585860f54ebef9fea1ba9c16a107bd;hpb=cf536b5db7c9f31425dae3ef339be6aa74fc03ce;p=lyx.git diff --git a/src/insets/render_graphic.h b/src/insets/render_graphic.h index 447e104eb2..3c41cc277e 100644 --- a/src/insets/render_graphic.h +++ b/src/insets/render_graphic.h @@ -17,32 +17,24 @@ #include "graphics/GraphicsLoader.h" #include "graphics/GraphicsParams.h" -#include - class RenderGraphic : public RenderBase { public: - RenderGraphic(); - RenderGraphic(RenderGraphic const &); - RenderBase * clone() const; + RenderGraphic(InsetBase const *); + RenderGraphic(RenderGraphic const &, InsetBase const *); + std::auto_ptr clone(InsetBase const *) const; /// compute the size of the object returned in dim void metrics(MetricsInfo & mi, Dimension & dim) const; - /// draw inset and update (xo, yo)-cache + /// 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(lyx::graphics::Params const & params); - /// Is the stored checksum different to that of the graphics loader? - bool hasFileChanged() const; - - /** Connect and you'll be informed when the loading status of the image - * changes. - */ - typedef boost::signal0::slot_type slot_type; - boost::signals::connection connect(slot_type const &) const; + /// equivalent to dynamic_cast + virtual RenderGraphic * asGraphic() { return this; } private: /// Not implemented. @@ -51,9 +43,6 @@ private: /// The stored data. lyx::graphics::Loader loader_; lyx::graphics::Params params_; - - /// Cached variable (not copied). - mutable unsigned long checksum_; };