summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svtools/RemoteFilesDialog.hxx3
-rw-r--r--svtools/source/dialogs/RemoteFilesDialog.cxx18
2 files changed, 12 insertions, 9 deletions
diff --git a/include/svtools/RemoteFilesDialog.hxx b/include/svtools/RemoteFilesDialog.hxx
index c5f876a35f58..43844ae7274e 100644
--- a/include/svtools/RemoteFilesDialog.hxx
+++ b/include/svtools/RemoteFilesDialog.hxx
@@ -44,6 +44,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::task;
+using namespace ::com::sun::star::ui::dialogs;
using namespace ::comphelper;
using namespace ::svt;
@@ -85,7 +86,7 @@ public:
virtual SvtFileView* GetView();
- virtual void SetHasFilename( bool bHasFilename );
+ virtual void SetHasFilename( bool );
virtual void SetBlackList( const ::com::sun::star::uno::Sequence< OUString >& rBlackList );
virtual const ::com::sun::star::uno::Sequence< OUString >& GetBlackList() const;
virtual void SetStandardDir( const OUString& rStdDir );
diff --git a/svtools/source/dialogs/RemoteFilesDialog.cxx b/svtools/source/dialogs/RemoteFilesDialog.cxx
index 28c34dd9c5bc..459434317ffd 100644
--- a/svtools/source/dialogs/RemoteFilesDialog.cxx
+++ b/svtools/source/dialogs/RemoteFilesDialog.cxx
@@ -749,9 +749,8 @@ SvtFileView* RemoteFilesDialog::GetView()
return m_pFileView;
}
-void RemoteFilesDialog::SetHasFilename( bool bHasFilename )
+void RemoteFilesDialog::SetHasFilename( bool )
{
- // TODO
}
void RemoteFilesDialog::SetBlackList( const ::com::sun::star::uno::Sequence< OUString >& rBlackList )
@@ -846,6 +845,7 @@ const OUString& RemoteFilesDialog::GetPath()
std::vector<OUString> RemoteFilesDialog::GetPathList() const
{
+ // TODO
std::vector<OUString> aPaths;
aPaths.push_back(m_sPath);
return aPaths;
@@ -853,8 +853,12 @@ std::vector<OUString> RemoteFilesDialog::GetPathList() const
bool RemoteFilesDialog::ContentIsFolder( const OUString& rURL )
{
- // TODO
- return false;
+ Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
+ Reference< XInteractionHandler > xInteractionHandler(
+ InteractionHandler::createWithParent( xContext, 0 ), UNO_QUERY_THROW );
+ Reference< XCommandEnvironment > xEnv = new ::ucbhelper::CommandEnvironment( xInteractionHandler, Reference< XProgressHandler >() );
+ ::ucbhelper::Content aContent( rURL, xEnv, xContext );
+ return aContent.isFolder();
}
sal_Int32 RemoteFilesDialog::getTargetColorDepth()
@@ -886,14 +890,12 @@ bool RemoteFilesDialog::getShowState()
return false;
}
-Control* RemoteFilesDialog::getControl( sal_Int16 _nControlId, bool _bLabelControl) const
+Control* RemoteFilesDialog::getControl( sal_Int16, bool) const
{
- // TODO
return NULL;
}
-void RemoteFilesDialog::enableControl( sal_Int16 _nControlId, bool _bEnable )
+void RemoteFilesDialog::enableControl( sal_Int16, bool )
{
- // TODO
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */