]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
Revert 23154.
[lyx.git] / src / CutAndPaste.h
index ce6c7ab8efd1b4804d09094a205c94e85e5f68b6..e3ba435b03416560aa8cffe6192800d3aaae8bbb 100644 (file)
 #include "support/types.h"
 #include "support/docstring.h"
 
+#include "frontends/Clipboard.h"
+
 #include <vector>
 
+using lyx::frontend::Clipboard;
+
 namespace lyx {
 
 class Buffer;
@@ -82,10 +86,15 @@ void clearCutStack();
 /// Paste the current selection at \p cur
 /// Does handle undo. Does only work in text, not mathed.
 void pasteSelection(Cursor & cur, ErrorList &);
-/// Replace the current selection with the clipboard contents (internal or
-/// external: which is newer)
+/// Replace the current selection with the clipboard contents as text
+/// (internal or external: which is newer).
+/// Does handle undo. Does only work in text, not mathed.
+void pasteClipboardText(Cursor & cur, ErrorList & errorList,
+       bool asParagraphs = true);
+/// Replace the current selection with the clipboard contents as graphic.
 /// Does handle undo. Does only work in text, not mathed.
-void pasteClipboard(Cursor & cur, ErrorList & errorList, bool asParagraphs = true);
+void pasteClipboardGraphics(Cursor & cur, ErrorList & errorList,
+       Clipboard::GraphicsType preferedType = Clipboard::AnyGraphicsType);
 /// Replace the current selection with cut buffer \c sel_index
 /// Does handle undo. Does only work in text, not mathed.
 void pasteFromStack(Cursor & cur, ErrorList & errorList, size_t sel_index);