diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-03 12:19:34 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-03 12:19:34 +0000 |
commit | 2dcb93345a7fceb3a7b65f81f667c1b632162eb8 (patch) | |
tree | 29f56a55f07b629877321c57f8439ff879f10484 /fpicker | |
parent | 74102ce5f93719e2c1c3a61103b8730af9ef1de3 (diff) |
INTEGRATION: CWS fpicker6 (1.6.16); FILE MERGED
2006/08/01 17:45:25 cmc 1.6.16.1: #i63263# multiselect support
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/OfficeFilePicker.cxx | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx index b9619c20d689..bcb9da22407c 100644 --- a/fpicker/source/office/OfficeFilePicker.cxx +++ b/fpicker/source/office/OfficeFilePicker.cxx @@ -4,9 +4,9 @@ * * $RCSfile: OfficeFilePicker.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: hr $ $Date: 2006-06-20 00:12:02 $ + * last change: $Author: ihi $ $Date: 2006-08-03 13:19:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -547,6 +547,33 @@ sal_Int16 SAL_CALL SvtFilePicker::execute( ) throw (RuntimeException) } //------------------------------------------------------------------------------------ +// XFilePickerWorkaround functions +//------------------------------------------------------------------------------------ + +// Obsoletes getFiles +Sequence< rtl::OUString > SAL_CALL SvtFilePicker::getFilesAsURIs() throw (RuntimeException) +{ + checkAlive(); + + ::vos::OGuard aGuard( Application::GetSolarMutex() ); + if ( ! getDialog() ) + { + Sequence< rtl::OUString > aEmpty; + return aEmpty; + } + + SvStringsDtor* pPathList = getDialog()->GetPathList(); + USHORT i, nCount = pPathList->Count(); + + Sequence< rtl::OUString > aPath( nCount ); + for ( i = 0; i < nCount; i++) + aPath[i] = rtl::OUString( *pPathList->GetObject( i ) ); + + delete pPathList; + return aPath; +} + +//------------------------------------------------------------------------------------ // XFilePicker functions //------------------------------------------------------------------------------------ |