diff options
author | Andreas Bregas <ab@openoffice.org> | 2001-03-09 08:33:55 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2001-03-09 08:33:55 +0000 |
commit | 64b0f43ae06ee596c5c41ce7757d5d32a14309fa (patch) | |
tree | 91e2899d2acf9e6f55b4211cc2871392d5e4d0d8 /fileaccess | |
parent | f8910a64102bc9f784dcb8e9772fc8479e5ec8a0 (diff) |
#84391#, #84400#, #84401# fixed
Diffstat (limited to 'fileaccess')
-rw-r--r-- | fileaccess/source/FileAccess.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fileaccess/source/FileAccess.cxx b/fileaccess/source/FileAccess.cxx index 26b894b6df43..c5c6bb2a4b58 100644 --- a/fileaccess/source/FileAccess.cxx +++ b/fileaccess/source/FileAccess.cxx @@ -2,9 +2,9 @@ * * $RCSfile: FileAccess.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: ab $ $Date: 2000-12-06 16:09:56 $ + * last change: $Author: ab $ $Date: 2001-03-09 09:33:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -342,7 +342,7 @@ sal_Bool OFileAccess::isReadOnly( const OUString& FileURL ) { INetURLObject aURLObj( FileURL, INET_PROT_FILE ); Content aCnt( aURLObj.GetMainURL(), mxEnvironment ); - Any aRetAny = aCnt.getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "isreadonly" ) ) ); + Any aRetAny = aCnt.getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "IsReadOnly" ) ) ); sal_Bool bRet = sal_False; aRetAny >>= bRet; return bRet; @@ -355,14 +355,14 @@ void OFileAccess::setReadOnly( const OUString& FileURL, sal_Bool bReadOnly ) Content aCnt( aURLObj.GetMainURL(), mxEnvironment ); Any aAny; aAny <<= bReadOnly; - aCnt.setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "isreadonly" ) ), aAny ); + aCnt.setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "IsReadOnly" ) ), aAny ); } void OFileAccess::createFolder( const OUString& NewFolderURL ) throw(CommandAbortedException, Exception, RuntimeException) { // Does the folder already exist? - if( isFolder( NewFolderURL ) ) + if( !NewFolderURL.getLength() || isFolder( NewFolderURL ) ) return; // SfxContentHelper::MakeFolder @@ -559,7 +559,7 @@ Reference< XStream > OFileAccess::openFileReadWrite( const OUString& FileURL ) void OFileAccess::setInteractionHandler( const Reference< XInteractionHandler >& Handler ) throw(RuntimeException) { - if( mpEnvironment ) + if( !mpEnvironment ) { mpEnvironment = new OCommandEnvironment(); mxEnvironment = (XCommandEnvironment*)mpEnvironment; |