]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
Fix bug #12772
[lyx.git] / src / CutAndPaste.h
index e4ff08b36595ed16c2eb2d4ce5ec7518ca98690b..d7fec67c176a930b5133531eac25721b75f4134f 100644 (file)
@@ -79,6 +79,8 @@ void copySelection(Cursor const & cur);
 void copySelectionToTemp(Cursor const & cur);
 ///
 void copyInset(Cursor const & cur, Inset * inset, docstring const & plaintext);
+///
+void copyInsetToTemp(Cursor const & cur, Inset * inset);
 /**
  * Push the current selection to the cut buffer and the system clipboard.
  * \param plaintext plain text version of the selection for the system
@@ -133,10 +135,14 @@ void pasteParagraphList(Cursor & cur, ParagraphList const & parlist,
 
 /** Needed to switch between different classes. This works
  *  for a list of paragraphs beginning with the specified par.
- *  It changes layouts and character styles.
+ *  It changes layouts and character styles. Errors are reported
+ *  in the passed ErrorList.
  */
 void switchBetweenClasses(DocumentClassConstPtr oldone,
-                       DocumentClassConstPtr newone, InsetText & in, ErrorList &);
+            DocumentClassConstPtr newone, InsetText & in, ErrorList & el);
+/// Same but without error reporting.
+void switchBetweenClasses(DocumentClassConstPtr oldone,
+            DocumentClassConstPtr newone, InsetText & in);
 
 /// Get the current selection as a string. Does not change the selection.
 /// Does only work if the whole selection is in mathed.