-class InsetNoteMailer : public MailInset {
-public:
- ///
- InsetNoteMailer(InsetNote & inset);
- ///
- virtual Inset & inset() const { return inset_; }
- ///
- virtual std::string const & name() const { return name_; }
- ///
- virtual std::string const inset2string(Buffer const &) const;
- ///
- static std::string const params2string(InsetNoteParams const &);
- ///
- static void string2params(std::string const &, InsetNoteParams &);
-
-private:
- ///
- static std::string const name_;
- ///
- InsetNote & inset_;
-};
-
+/**
+ * Mutate all NoteInsets of "source" type to the "target" type in the document.
+ * Returns true when some inset was changed.
+ */
+bool mutateNotes(lyx::BufferView * view, std::string const & source, std::string const &target);