+ std::string const graphic_label;
+
+ /// The thing that actually draws the image on LyX's screen.
+ boost::scoped_ptr<RenderGraphic> const graphic_;
+};
+
+
+#include "mailinset.h"
+
+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_;