summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-23 08:24:31 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-23 15:22:16 +0200
commite37b70442ebf9e1628e7da16b7b6acf498897dee (patch)
tree4c02f4b4be6c10d4ff2a8b99f4ab057670e4d80b /offapi
parentd5d96e04ad8014f3e68351ccb54221d9610b565b (diff)
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 <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/document/MediaDescriptor.idl6
-rw-r--r--offapi/com/sun/star/frame/XModel2.idl2
2 files changed, 8 insertions, 0 deletions
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
<li>com::sun::star::document::MediaDescriptor::LockContentExtraction</li>
<li>com::sun::star::document::MediaDescriptor::LockExport</li>
<li>com::sun::star::document::MediaDescriptor::LockPrint</li>
+ <li>com::sun::star::document::MediaDescriptor::LockSave</li>
+
</ul>
@throws com::sun::star::lang::IllegalArgumentException When trying to set an unsupported property