From fc4b708fcafd872d0d5ffd7d4c2fdf010f60b0ad Mon Sep 17 00:00:00 2001 From: Mikhail Voytenko Date: Thu, 4 Nov 2010 17:56:39 +0100 Subject: pl08: #163778# use EncryptionData from MediaDescriptor --- offapi/com/sun/star/document/MediaDescriptor.idl | 29 +++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'offapi/com/sun/star/document') diff --git a/offapi/com/sun/star/document/MediaDescriptor.idl b/offapi/com/sun/star/document/MediaDescriptor.idl index 36da721cc159..fa7ce3dc99c3 100644 --- a/offapi/com/sun/star/document/MediaDescriptor.idl +++ b/offapi/com/sun/star/document/MediaDescriptor.idl @@ -39,6 +39,10 @@ #include #endif +#ifndef __com_sun_star_beans_NamedValue_idl__ +#include +#endif + #ifndef __com_sun_star_util_URL_idl__ #include #endif @@ -163,6 +167,23 @@ published service MediaDescriptor */ [optional,property] string DocumentTitle; + //------------------------------------------------------------------------- + /** encryption information for encryption/decryption of documents + +

+ It contains the necessary information for encryption/decryption of + a component (if necessary). + If neither password nor encryption data is specified, loading of + a password protected document will fail, storing will be done without + encryption. If both are provided, the encryption data is used + ( if the filter supports it ). +

+

+ The encryption data is generated based on the password. +

+ */ + [optional,property] sequence< ::com::sun::star::beans::NamedValue > EncryptionData; + //------------------------------------------------------------------------- /** same as MediaDescriptor::URL @@ -365,9 +386,11 @@ published service MediaDescriptor /** pasword for loading storing documents

- It caontains a password for loading or storing a component (if necessary). - If no password is specified, loading of a password protected document - will fail, storing will be done without encryption. + It contains a password for loading or storing a component (if necessary). + If neither password nor encryption data is specified, loading of + a password protected document will fail, storing will be done without + encryption. If both are provided, the encryption data is used + ( if the filter supports it ).

*/ [optional,property] string Password; -- cgit