diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-10-22 15:58:31 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-10-23 15:21:24 +0200 |
commit | d5d96e04ad8014f3e68351ccb54221d9610b565b (patch) | |
tree | 3e8ac0f0082dbadac30b66fa5d04235e20d649fb /offapi | |
parent | 8f06d4b34661411db5c6fd78c4c6c702557cf344 (diff) |
Add document-level option to lock down printing
Change-Id: I85694021d74be79293079d04d5ba1d9b48cfa557
Reviewed-on: https://gerrit.libreoffice.org/81340
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/document/MediaDescriptor.idl | 6 | ||||
-rw-r--r-- | offapi/com/sun/star/frame/XModel2.idl | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/offapi/com/sun/star/document/MediaDescriptor.idl b/offapi/com/sun/star/document/MediaDescriptor.idl index f7c248d85803..b7ff7c50356a 100644 --- a/offapi/com/sun/star/document/MediaDescriptor.idl +++ b/offapi/com/sun/star/document/MediaDescriptor.idl @@ -576,6 +576,12 @@ service MediaDescriptor @since LibreOffice 6.4 */ [optional,property] boolean LockExport; + + /** Setting this option will disable all print functions (including Printer setup) + + @since LibreOffice 6.4 + */ + [optional,property] boolean LockPrint; }; diff --git a/offapi/com/sun/star/frame/XModel2.idl b/offapi/com/sun/star/frame/XModel2.idl index 3cdbda4dfc09..b68ac819dc27 100644 --- a/offapi/com/sun/star/frame/XModel2.idl +++ b/offapi/com/sun/star/frame/XModel2.idl @@ -144,6 +144,7 @@ interface XModel2 : com::sun::star::frame::XModel <li>com::sun::star::document::MediaDescriptor::SuggestedSaveAsName</li> <li>com::sun::star::document::MediaDescriptor::LockContentExtraction</li> <li>com::sun::star::document::MediaDescriptor::LockExport</li> + <li>com::sun::star::document::MediaDescriptor::LockPrint</li> </ul> @throws com::sun::star::lang::IllegalArgumentException When trying to set an unsupported property |