diff options
author | Serge Krot <Serge.Krot@cib.de> | 2019-11-12 21:52:05 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-11-13 12:45:39 +0100 |
commit | a474e2267cdcb1707333acdea1353d883d58c801 (patch) | |
tree | 77b87df1a132a48ffc1616b1a00e3102f9e49abb /offapi | |
parent | 21c29a756c5d01cada2a09dd6d55fdc482807bb4 (diff) |
Add document level option to lock down edit doc command
Change-Id: I431fa4cd0daa52c885030dbadcc4052b5a890d34
Reviewed-on: https://gerrit.libreoffice.org/82553
Reviewed-by: Serge Krot (CIB) <Serge.Krot@cib.de>
Tested-by: Serge Krot (CIB) <Serge.Krot@cib.de>
Reviewed-on: https://gerrit.libreoffice.org/82576
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 | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/offapi/com/sun/star/document/MediaDescriptor.idl b/offapi/com/sun/star/document/MediaDescriptor.idl index 72ee23fcd2ee..728ef4ab4a29 100644 --- a/offapi/com/sun/star/document/MediaDescriptor.idl +++ b/offapi/com/sun/star/document/MediaDescriptor.idl @@ -590,6 +590,12 @@ service MediaDescriptor @since LibreOffice 6.4 */ [optional,property] boolean LockSave; + + /** Setting this option will disable switching to edit mode from read-only mode. + * + @since LibreOffice 6.4 + */ + [optional,property] boolean LockEditDoc; }; diff --git a/offapi/com/sun/star/frame/XModel2.idl b/offapi/com/sun/star/frame/XModel2.idl index 128d5ced20d6..4221a527c380 100644 --- a/offapi/com/sun/star/frame/XModel2.idl +++ b/offapi/com/sun/star/frame/XModel2.idl @@ -146,7 +146,7 @@ interface XModel2 : com::sun::star::frame::XModel <li>com::sun::star::document::MediaDescriptor::LockExport</li> <li>com::sun::star::document::MediaDescriptor::LockPrint</li> <li>com::sun::star::document::MediaDescriptor::LockSave</li> - + <li>com::sun::star::document::MediaDescriptor::LockEditDoc</li> </ul> @throws com::sun::star::lang::IllegalArgumentException When trying to set an unsupported property |