diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-02-21 16:47:38 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-02-21 16:51:28 +0100 |
commit | 712b33cdbbad997db327115145110fbdee09f2f8 (patch) | |
tree | e0fd169563f7fe5dbc407517b26dc8a69ddfee96 /sc/source/filter | |
parent | 925e14220ef51ec31604d94ab02d8ae3f37b7d43 (diff) |
pass the storage to the XML import filter
The Calc case of 73a24e709396e4dd906b8cfbd7719e51f29dd3a7 .
Change-Id: If280dab5bac7fa7719840ebba51bdca61b9d8c2d
Diffstat (limited to 'sc/source/filter')
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 4c9e2aba9eb4..01e3a2cdd870 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -354,6 +354,7 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError) { MAP_LEN( "ScriptConfiguration" ), 0, &::getCppuType((uno::Reference<container::XNameAccess> *)0), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0}, { MAP_LEN( "OrganizerMode" ), 0, &::getBooleanCppuType(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 }, + { MAP_LEN( "SourceStorage" ), 0, &embed::XStorage::static_type(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 }, { NULL, 0, 0, NULL, 0, 0 } }; @@ -420,6 +421,8 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly, ErrCode& nError) xInfoSet->setPropertyValue(sOrganizerMode, uno::makeAny(sal_True)); } + xInfoSet->setPropertyValue( "SourceStorage", uno::Any( xStorage ) ); + sal_Bool bOasis = ( SotStorage::GetVersion( xStorage ) > SOFFICE_FILEFORMAT_60 ); // #i103539#: always read meta.xml for generator |