From 075f20a4b696f9e85d11dc977806e41a49e6de61 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Thu, 10 Oct 2019 08:13:51 +0200 Subject: Add document-level option to lock down content extraction Setting this option will prevent copying/dragging any content from LO to another program or even another LO window. Change-Id: Ifbc032a4fa69ac1a17d4b500f5a30f5399d84ed7 Reviewed-on: https://gerrit.libreoffice.org/80586 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- offapi/com/sun/star/document/MediaDescriptor.idl | 8 ++++++++ offapi/com/sun/star/frame/XModel2.idl | 1 + 2 files changed, 9 insertions(+) (limited to 'offapi') diff --git a/offapi/com/sun/star/document/MediaDescriptor.idl b/offapi/com/sun/star/document/MediaDescriptor.idl index 58e773311875..0a4ba28f611b 100644 --- a/offapi/com/sun/star/document/MediaDescriptor.idl +++ b/offapi/com/sun/star/document/MediaDescriptor.idl @@ -560,6 +560,14 @@ service MediaDescriptor /** specifies the frame containing the document. May be empty. */ [optional,property] com::sun::star::frame::XFrame Frame; + + /** Setting this option will prevent copying/dragging any content anywhere. + The commands 'Copy' and 'Cut' will be disabled; selection clipboard won't work, + and dragging with mouse will also be disabled. + + @since LibreOffice 6.4 + */ + [optional,property] boolean LockContentExtraction; }; diff --git a/offapi/com/sun/star/frame/XModel2.idl b/offapi/com/sun/star/frame/XModel2.idl index 22d1ff9f82ec..c3a8d18a71b6 100644 --- a/offapi/com/sun/star/frame/XModel2.idl +++ b/offapi/com/sun/star/frame/XModel2.idl @@ -142,6 +142,7 @@ interface XModel2 : com::sun::star::frame::XModel @throws com::sun::star::lang::IllegalArgumentException When trying to set an unsupported property -- cgit