sc/source/filter/xml/xmlwrap.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 712b33cdbbad997db327115145110fbdee09f2f8 Author: LuboÅ¡ LuÅák <l.lu...@suse.cz> Date: Thu Feb 21 16:47:38 2013 +0100 pass the storage to the XML import filter The Calc case of 73a24e709396e4dd906b8cfbd7719e51f29dd3a7 . Change-Id: If280dab5bac7fa7719840ebba51bdca61b9d8c2d diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 4c9e2ab..01e3a2c 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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits