X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Frender_graphic.h;h=182e02f2d35181367e4aa60932223becb054ab2b;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=3c41cc277e3b9d3c79864839a8c4408f7196fee2;hpb=7b54b9ca42339428dead76106da82720e53e0814;p=lyx.git diff --git a/src/insets/render_graphic.h b/src/insets/render_graphic.h index 3c41cc277e..182e02f2d3 100644 --- a/src/insets/render_graphic.h +++ b/src/insets/render_graphic.h @@ -18,6 +18,9 @@ #include "graphics/GraphicsParams.h" +namespace lyx { + + class RenderGraphic : public RenderBase { public: @@ -26,12 +29,12 @@ public: std::auto_ptr 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); + void update(graphics::Params const & params); /// equivalent to dynamic_cast virtual RenderGraphic * asGraphic() { return this; } @@ -41,9 +44,12 @@ private: RenderGraphic & operator=(RenderGraphic const &); /// The stored data. - lyx::graphics::Loader loader_; - lyx::graphics::Params params_; + graphics::Loader loader_; + graphics::Params params_; }; + +} // namespace lyx + #endif // NOT RENDER_GRAPHIC_H