INTEGRATION: CWS fwk90 (1.9.68); FILE MERGED

2008/06/09 06:47:44 cd 1.9.68.1: #i90010# Remove unused code from svtools
This commit is contained in:
Rüdiger Timm 2008-07-08 07:21:23 +00:00
parent 508ec2c55a
commit 51af0a2681

View file

@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fsfactory.cxx,v $
* $Revision: 1.9 $
* $Revision: 1.10 $
*
* This file is part of OpenOffice.org.
*
@ -51,45 +51,6 @@
using namespace ::com::sun::star;
//-------------------------------------------------------------------------
// Checks whether it is a file URL that represents a folder
sal_Bool isLocalNotFile_Impl( ::rtl::OUString aURL )
{
sal_Bool bResult = sal_False;
::rtl::OUString aSystemPath;
::ucbhelper::ContentBroker* pBroker = ::ucbhelper::ContentBroker::get();
if ( !pBroker )
throw uno::RuntimeException();
uno::Reference< ucb::XContentProviderManager > xManager =
pBroker->getContentProviderManagerInterface();
try
{
aSystemPath = ::ucbhelper::getSystemPathFromFileURL( xManager, aURL );
}
catch ( uno::Exception& )
{
}
if ( aSystemPath.getLength() != 0 )
{
// it is a local file URL, check that it is not a file
try
{
uno::Reference< ucb::XCommandEnvironment > xDummyEnv;
::ucbhelper::Content aContent( aURL, xDummyEnv );
bResult = aContent.isFolder();
}
catch( uno::Exception& )
{
bResult = sal_True;
}
}
return bResult;
}
//-------------------------------------------------------------------------
uno::Sequence< ::rtl::OUString > SAL_CALL FSStorageFactory::impl_staticGetSupportedServiceNames()
{