diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-07-01 17:43:10 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-16 09:53:21 +0200 |
commit | 0aae2a8702e1a68b79bd25d4d6e4b08b1eb1b69f (patch) | |
tree | a02637275b738b26a06fefe83f26b776a071d088 /svtools/source/dialogs | |
parent | fb156b90abcbf2b1eb35f78286ae4ccb0af33dbf (diff) |
RemoteFilesDialog: methods implementations
Change-Id: I3938a17fe180273ec9845720290b1503d15bfcc3
Diffstat (limited to 'svtools/source/dialogs')
-rw-r--r-- | svtools/source/dialogs/RemoteFilesDialog.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
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: */ |