summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-01-30 19:10:12 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-01 14:20:33 +0100
commit73a24e709396e4dd906b8cfbd7719e51f29dd3a7 (patch)
treeab5413baf3171f831702697d35cb442c7c2633a9
parentd28f0bfda55eebc34bbe5aab22f430ee37ef7e9b (diff)
pass the storage to the XML import filter
So that SvXMLImport::GetSourceStorage() returns something useful. Change-Id: Iecb2044336d45eefcb2b0ca5cfda5bc173d4e71e
-rw-r--r--sw/source/filter/xml/swxml.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx
index 736a5a8baea0..76778b6787c3 100644
--- a/sw/source/filter/xml/swxml.cxx
+++ b/sw/source/filter/xml/swxml.cxx
@@ -643,6 +643,8 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con
{ "TextDocInOOoFileFormat", sizeof("TextDocInOOoFileFormat")-1, 0,
&::getBooleanCppuType(),
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 }
};
uno::Reference< beans::XPropertySet > xInfoSet(
@@ -701,6 +703,8 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPaM, con
makeAny( xLateInitSettings )
);
+ xInfoSet->setPropertyValue( "SourceStorage", Any( xStorage ) );
+
// prepare filter arguments, WARNING: the order is important!
Sequence<Any> aFilterArgs( 5 );
Any *pArgs = aFilterArgs.getArray();