Kaydet (Commit) 73a24e70 authored tarafından Luboš Luňák's avatar Luboš Luňák

pass the storage to the XML import filter

So that SvXMLImport::GetSourceStorage() returns something useful.

Change-Id: Iecb2044336d45eefcb2b0ca5cfda5bc173d4e71e
üst d28f0bfd
...@@ -643,6 +643,8 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con ...@@ -643,6 +643,8 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con
{ "TextDocInOOoFileFormat", sizeof("TextDocInOOoFileFormat")-1, 0, { "TextDocInOOoFileFormat", sizeof("TextDocInOOoFileFormat")-1, 0,
&::getBooleanCppuType(), &::getBooleanCppuType(),
beans::PropertyAttribute::MAYBEVOID, 0 }, beans::PropertyAttribute::MAYBEVOID, 0 },
{ "SourceStorage", strlen( "SourceStorage" ), 0, &embed::XStorage::static_type(),
::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0 },
{ NULL, 0, 0, NULL, 0, 0 } { NULL, 0, 0, NULL, 0, 0 }
}; };
uno::Reference< beans::XPropertySet > xInfoSet( uno::Reference< beans::XPropertySet > xInfoSet(
...@@ -701,6 +703,8 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con ...@@ -701,6 +703,8 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con
makeAny( xLateInitSettings ) makeAny( xLateInitSettings )
); );
xInfoSet->setPropertyValue( "SourceStorage", Any( xStorage ) );
// prepare filter arguments, WARNING: the order is important! // prepare filter arguments, WARNING: the order is important!
Sequence<Any> aFilterArgs( 5 ); Sequence<Any> aFilterArgs( 5 );
Any *pArgs = aFilterArgs.getArray(); Any *pArgs = aFilterArgs.getArray();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment