diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-07-03 15:01:21 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-16 09:53:26 +0200 |
commit | 1f47d8ad5d1af00af0370842494fda07ec861519 (patch) | |
tree | 31df2eee892cbcaacd8853817e6bb1fca2b04b9c /svtools | |
parent | df30ae59836ec223671b0a9dc88757e6563bbbc2 (diff) |
Implemented GetPathList method, opening of the multiple files
Change-Id: I79eb5178dc9b740e6ebaa9e8069fc2a144d4627d
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/RemoteFilesDialog.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/svtools/source/dialogs/RemoteFilesDialog.cxx b/svtools/source/dialogs/RemoteFilesDialog.cxx index 29668ad62fcd..3c728cd3ca3b 100644 --- a/svtools/source/dialogs/RemoteFilesDialog.cxx +++ b/svtools/source/dialogs/RemoteFilesDialog.cxx @@ -850,10 +850,17 @@ const OUString& RemoteFilesDialog::GetPath() std::vector<OUString> RemoteFilesDialog::GetPathList() const { - // TODO - std::vector<OUString> aPaths; - aPaths.push_back(m_sPath); - return aPaths; + std::vector<OUString> aList; + sal_uLong nCount = m_pFileView->GetSelectionCount(); + SvTreeListEntry* pEntry = nCount ? m_pFileView->FirstSelected() : NULL; + + while( pEntry ) + { + aList.push_back( SvtFileView::GetURL( pEntry ) ); + pEntry = m_pFileView->NextSelected( pEntry ); + } + + return aList; } bool RemoteFilesDialog::ContentIsFolder( const OUString& rURL ) |