-bool pasteSelection(Paragraph ** par, Paragraph ** endpar,
- int & pos, lyx::textclass_type tc);
+std::pair<PitPosPair, ParagraphList::iterator>
+pasteSelection(Buffer const & buffer,
+ ParagraphList & pars,
+ ParagraphList::iterator pit, int pos,
+ lyx::textclass_type tc, ErrorList &);
+
+///
+std::pair<PitPosPair, ParagraphList::iterator>
+pasteSelection(Buffer const & buffer,
+ ParagraphList & pars,
+ ParagraphList::iterator pit, int pos,
+ lyx::textclass_type tc,
+ size_t cuts_indexm, ErrorList &);