diff options
author | Andreas Bille <abi@openoffice.org> | 2001-04-25 07:46:37 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2001-04-25 07:46:37 +0000 |
commit | f6ccbb73516ea751b484a4590a45ce2c06f6b6d7 (patch) | |
tree | 26595b5941a85e78e8e531c6ba56010a5bba409c /ucb/source | |
parent | e4210ba36691665ca1c925a0a6809731256c150a (diff) |
#84401#
Modified shell::setv
setReadOnly was not implemented yet
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index 681b37a5a153..9e96df45b281 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shell.cxx,v $ * - * $Revision: 1.32 $ + * $Revision: 1.33 $ * - * last change: $Author: kso $ $Date: 2001-04-05 09:49:09 $ + * last change: $Author: abi $ $Date: 2001-04-25 08:46:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1958,6 +1958,23 @@ shell::setv( sal_Int32 CommandId, else { // Setting of physical file properties + if( values[i].Name == IsReadOnly ) + { + sal_Bool readonly ; + if( values[i].Value >>= readonly ) + { + // err value not used here, since method is not allowed to + // throw an exception + if( readonly ) + osl::File::setAttributes( aUnqPath,Attribute_ReadOnly ); + else + osl::File::setAttributes( aUnqPath, + Attribute_GrpWrite | + Attribute_GrpRead | + Attribute_OwnWrite | + Attribute_OwnRead ); + } + } } } |