]> git.lyx.org Git - lyx.git/blobdiff - src/insets/render_graphic.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / render_graphic.h
index a5d8e5155a979771b675d70e76dfd7a440d1c58a..182e02f2d35181367e4aa60932223becb054ab2b 100644 (file)
@@ -18,6 +18,9 @@
 #include "graphics/GraphicsParams.h"
 
 
+namespace lyx {
+
+
 class RenderGraphic : public RenderBase
 {
 public:
@@ -26,15 +29,12 @@ public:
        std::auto_ptr<RenderBase> clone(InsetBase const *) const;
 
        /// compute the size of the object returned in dim
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       bool 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(lyx::graphics::Params const & params);
-
-       /// Is the stored checksum different to that of the graphics loader?
-       bool hasFileChanged() const;
+       void update(graphics::Params const & params);
 
        /// equivalent to dynamic_cast
        virtual RenderGraphic * asGraphic() { return this; }
@@ -44,12 +44,12 @@ private:
        RenderGraphic & operator=(RenderGraphic const &);
 
        /// The stored data.
-       lyx::graphics::Loader loader_;
-       lyx::graphics::Params params_;
-
-       /// Cached variable (not copied).
-       mutable unsigned long checksum_;
+       graphics::Loader loader_;
+       graphics::Params params_;
 };
 
 
+
+} // namespace lyx
+
 #endif // NOT RENDER_GRAPHIC_H