X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.h;h=4149f1983b135a0465d72e6e6a7041513f0baaa7;hb=889182eb1a19da1cb4d5b5efeea434a5e6592ef0;hp=2453601157106b63b1ec60faebf0e1d43347d2e7;hpb=ead697d4b6c7122a2144b96712e6d2a3184f6fd8;p=lyx.git diff --git a/src/CutAndPaste.h b/src/CutAndPaste.h index 2453601157..4149f1983b 100644 --- a/src/CutAndPaste.h +++ b/src/CutAndPaste.h @@ -87,15 +87,16 @@ void pasteSelection(Cursor & cur, ErrorList &); /// 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); +/// \p asParagraphs is only considered if plain text is pasted. +bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs, + Clipboard::TextType preferedType = Clipboard::LyXOrPlainTextType); /// Replace the current selection with the clipboard contents as graphic. /// Does handle undo. Does only work in text, not mathed. 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); +bool pasteFromStack(Cursor & cur, ErrorList & errorList, size_t sel_index); /// Paste the clipboard as simple text, removing any formatting void pasteSimpleText(Cursor & cur, bool asParagraphs);