]> git.lyx.org Git - lyx.git/blobdiff - src/insets/RenderGraphic.h
requires is a keyword in C++2a
[lyx.git] / src / insets / RenderGraphic.h
index 938322fad0abf5497d3c0964c7f11a6779d284db..37f3aaaa93cb84f02f3d76569fe40f33d68042ee 100644 (file)
@@ -24,7 +24,7 @@ namespace lyx {
 class RenderGraphic : public RenderBase
 {
 public:
-       RenderGraphic(Inset const *);
+       explicit RenderGraphic(Inset const *);
        RenderGraphic(RenderGraphic const &, Inset const *);
        RenderBase * clone(Inset const *) const;
 
@@ -35,6 +35,8 @@ public:
 
        /// 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; }
@@ -43,9 +45,11 @@ private:
        /// Not implemented.
        RenderGraphic & operator=(RenderGraphic const &);
 
+       /// Reference to owner
+       Inset const * inset_;
+
        /// The stored data.
        graphics::Loader loader_;
-       graphics::Loader icon_;
        graphics::Params params_;
 };