From e37b70442ebf9e1628e7da16b7b6acf498897dee Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Wed, 23 Oct 2019 08:24:31 +0200 Subject: Add document-level option to lock down save Change-Id: I40b5e8c780894645e467e3891062c499707d69c7 Reviewed-on: https://gerrit.libreoffice.org/81359 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- offapi/com/sun/star/document/MediaDescriptor.idl | 6 ++++++ offapi/com/sun/star/frame/XModel2.idl | 2 ++ 2 files changed, 8 insertions(+) (limited to 'offapi') diff --git a/offapi/com/sun/star/document/MediaDescriptor.idl b/offapi/com/sun/star/document/MediaDescriptor.idl index b7ff7c50356a..e6035517f26b 100644 --- a/offapi/com/sun/star/document/MediaDescriptor.idl +++ b/offapi/com/sun/star/document/MediaDescriptor.idl @@ -582,6 +582,12 @@ service MediaDescriptor @since LibreOffice 6.4 */ [optional,property] boolean LockPrint; + + /** Setting this option will disable the save function. + * + @since LibreOffice 6.4 + */ + [optional,property] boolean LockSave; }; diff --git a/offapi/com/sun/star/frame/XModel2.idl b/offapi/com/sun/star/frame/XModel2.idl index b68ac819dc27..128d5ced20d6 100644 --- a/offapi/com/sun/star/frame/XModel2.idl +++ b/offapi/com/sun/star/frame/XModel2.idl @@ -145,6 +145,8 @@ interface XModel2 : com::sun::star::frame::XModel
  • com::sun::star::document::MediaDescriptor::LockContentExtraction
  • com::sun::star::document::MediaDescriptor::LockExport
  • com::sun::star::document::MediaDescriptor::LockPrint
  • +
  • com::sun::star::document::MediaDescriptor::LockSave
  • + @throws com::sun::star::lang::IllegalArgumentException When trying to set an unsupported property -- cgit