Kaydet (Commit) 66c62ca1 authored tarafından Caolán McNamara's avatar Caolán McNamara

we just want to know if its a directory/folder or not

üst 5cc63989
......@@ -2473,23 +2473,10 @@ ErrCode FileDialogHelper::GetGraphic( Graphic& rGraphic ) const
// ------------------------------------------------------------------------
static int impl_isFolder( const OUString& rPath )
{
uno::Reference< task::XInteractionHandler > xHandler;
try
{
uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory(), uno::UNO_QUERY_THROW );
xHandler.set( xFactory->createInstance( DEFINE_CONST_OUSTRING( "com.sun.star.task.InteractionHandler" ) ),
uno::UNO_QUERY_THROW );
}
catch ( const Exception & )
{
}
::rtl::Reference< ::comphelper::StillReadWriteInteraction > aHandler = new ::comphelper::StillReadWriteInteraction( xHandler );
try
{
::ucbhelper::Content aContent(
rPath, new ::ucbhelper::CommandEnvironment( static_cast< task::XInteractionHandler* > ( aHandler.get() ), uno::Reference< ucb::XProgressHandler >() ) );
rPath, uno::Reference< ucb::XCommandEnvironment > () );
if ( aContent.isFolder() )
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment