From 66c62ca16d1faa1bdb21757dc1abb8752df53293 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 13 Mar 2012 17:22:30 +0000 Subject: we just want to know if its a directory/folder or not --- sfx2/source/dialog/filedlghelper.cxx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 8da6138caa3b..3bf4fb5963a9 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -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; -- cgit