-class InsetGraphicsMailer : public MailInset {
-public:
- ///
- InsetGraphicsMailer(InsetGraphics & inset);
- ///
- virtual Inset & 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_;
-};
+ /// Saves the list of currently used groups in the document.
+ void getGraphicsGroups(Buffer const &, std::set<std::string> &);
+
+ /// how many members has the current group?
+ int countGroupMembers(Buffer const &, std::string const &);
+
+ /// Returns parameters of a given graphics group (except filename).
+ std::string getGroupParams(Buffer const &, std::string const &);
+
+ /** Synchronize all Graphics insets of the group.
+ Both groupId and params are taken from argument.
+ */
+ void unifyGraphicsGroups(Buffer &, std::string const &);
+ InsetGraphics * getCurrentGraphicsInset(Cursor const &);