-///
-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 &);
+/// Paste the paragraph list \p parlist at the position given by \p cur.
+/// Does not handle undo. Does only work in text, not mathed.
+void pasteParagraphList(LCursor & cur, ParagraphList const & parlist,
+ textclass_type textclass, ErrorList & errorList);
+
+
+/** Needed to switch between different classes. This works
+ * for a list of paragraphs beginning with the specified par.
+ * It changes layouts and character styles.
+ */
+void switchBetweenClasses(textclass_type c1, textclass_type c2,
+ InsetText & in, ErrorList &);