diff options
author | Oliver Bolte <obo@openoffice.org> | 2009-02-11 14:19:26 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2009-02-11 14:19:26 +0000 |
commit | cd4fa30db91451db97f8ce4f39a9226e013f1ebf (patch) | |
tree | b386c37b32ebf9457bb5283d07972e58b703e3a2 /fpicker/source/office/OfficeFilePicker.cxx | |
parent | 177f85939b7eac38e13263f224cb708ef8a92050 (diff) |
CWS-TOOLING: integrate CWS tkr16
2008-12-11 15:48:43 +0100 tkr r265321 : #i95208# do not deliver linux/unix shared libraries
2008-12-10 11:13:31 +0100 tkr r265158 : CWS-TOOLING: rebase CWS tkr16 to trunk@264807 (milestone: DEV300:m37)
2008-12-09 10:32:56 +0100 tkr r265061 : #i96906# patch: size of a symlink to a file
2008-10-28 08:48:23 +0100 tkr r262697 : iXXXXX#: migrate CWS tkr16 to SVN.
Diffstat (limited to 'fpicker/source/office/OfficeFilePicker.cxx')
-rw-r--r-- | fpicker/source/office/OfficeFilePicker.cxx | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx index 469888c922..c4992b7b12 100644 --- a/fpicker/source/office/OfficeFilePicker.cxx +++ b/fpicker/source/office/OfficeFilePicker.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: OfficeFilePicker.cxx,v $ - * $Revision: 1.17 $ + * $Revision: 1.17.20.1 $ * * This file is part of OpenOffice.org. * @@ -1056,20 +1056,32 @@ void SAL_CALL SvtFilePicker::initialize( const Sequence< Any >& _rArguments ) throw ( Exception, RuntimeException ) { checkAlive(); + + Sequence< Any > aArguments( _rArguments.getLength()); m_nServiceType = TemplateDescription::FILEOPEN_SIMPLE; if ( _rArguments.getLength() >= 1 ) { // compatibility: one argument, type sal_Int16 , specifies the service type - _rArguments[0] >>= m_nServiceType; + int index = 0; - for ( int i = 0; i < _rArguments.getLength(); i++) + if (_rArguments[0] >>= m_nServiceType) + { + // skip the first entry if it was the ServiceType, because it's not needed in OCommonPicker::initialize and it's not a NamedValue + NamedValue emptyNamedValue; + aArguments[0] <<= emptyNamedValue; + index = 1; + + } + for ( int i = index; i < _rArguments.getLength(); i++) { NamedValue namedValue; + aArguments[i] <<= _rArguments[i]; - if (_rArguments[i] >>= namedValue ) + if (aArguments[i] >>= namedValue ) { + if ( namedValue.Name.equals( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StandardDir" ) ) ) ) { ::rtl::OUString sStandardDir; @@ -1087,7 +1099,7 @@ void SAL_CALL SvtFilePicker::initialize( const Sequence< Any >& _rArguments ) } // let the base class analyze the sequence (will call into implHandleInitializationArgument) - OCommonPicker::initialize( _rArguments ); + OCommonPicker::initialize( aArguments ); } //------------------------------------------------------------------------- |