summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-13 17:22:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-14 12:08:31 +0000
commit66c62ca16d1faa1bdb21757dc1abb8752df53293 (patch)
tree84c90b4b3f5cb55a596ccaf4df54667a382bf7bf /sfx2/source/dialog
parent5cc6398985181574b68ab15386176fb806386490 (diff)
we just want to know if its a directory/folder or not
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/filedlghelper.cxx15
1 files changed, 1 insertions, 14 deletions
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;