summaryrefslogtreecommitdiff
path: root/fpicker/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-02-11 14:19:26 +0000
committerOliver Bolte <obo@openoffice.org>2009-02-11 14:19:26 +0000
commitcd4fa30db91451db97f8ce4f39a9226e013f1ebf (patch)
treeb386c37b32ebf9457bb5283d07972e58b703e3a2 /fpicker/source
parent177f85939b7eac38e13263f224cb708ef8a92050 (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')
-rw-r--r--fpicker/source/office/OfficeFilePicker.cxx22
-rw-r--r--fpicker/source/office/commonpicker.cxx10
2 files changed, 26 insertions, 6 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 );
}
//-------------------------------------------------------------------------
diff --git a/fpicker/source/office/commonpicker.cxx b/fpicker/source/office/commonpicker.cxx
index 0290b1ee01..8fa1ac31f4 100644
--- a/fpicker/source/office/commonpicker.cxx
+++ b/fpicker/source/office/commonpicker.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: commonpicker.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.12.1 $
*
* This file is part of OpenOffice.org.
*
@@ -449,13 +449,21 @@ namespace svt
{
if ( *pArgument >>= aPropArg )
{
+ if ( aPropArg.Name.getLength() <= 0)
+ continue;
+
sSettingName = aPropArg.Name;
aSettingValue = aPropArg.Value;
}
else if ( *pArgument >>= aPairArg )
{
+ if ( aPairArg.Name.getLength() <= 0)
+ continue;
+
sSettingName = aPairArg.Name;
aSettingValue = aPairArg.Value;
+
+
}
else
{