- /// The cached variables
- class Cache;
- friend class Cache;
- /// The pointer never changes although *cache_'s contents may.
- boost::scoped_ptr<Cache> const cache_;
+ /// The thing that actually draws the image on LyX's screen.
+ boost::scoped_ptr<RenderGraphic> const graphic_;
+};
+
+
+class InsetGraphicsMailer : public MailInset {
+public:
+ ///
+ InsetGraphicsMailer(InsetGraphics & inset);
+ ///
+ virtual InsetBase & inset() const { return inset_; }
+ ///
+ virtual std::string const & name() const { return name_; }
+ ///
+ virtual std::string const inset2string(Buffer const &) const;
+ ///
+ static void string2params(std::string const & data,
+ Buffer const & buffer,
+ InsetGraphicsParams &);
+ ///
+ static std::string const params2string(InsetGraphicsParams const &,
+ Buffer const &);
+private:
+ ///
+ static std::string const name_;
+ ///
+ InsetGraphics & inset_;