diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-12-15 15:06:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-12-15 19:55:56 +0100 |
commit | 06456a9951783b5696592ae587fb209cd0411144 (patch) | |
tree | 04a49aaca635f097b85ef639e8fdb30169da91f8 /svx | |
parent | 332651107d73b085458fa90906922d004354eb26 (diff) |
svx: set BaseURL from SvxOle2Shape::createObject()
This is used from oox chart import code, cf.
oox::drawingml::Shape::finalizeXShape().
Change-Id: I7b2097f8d5740a590a6473797ab9436453fbf580
(cherry picked from commit 75a200f371d12ddaf5b82af10c8d4675babcdb5e)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshap4.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx index 58c668a3a471..03c85d4ce9ed 100644 --- a/svx/source/unodraw/unoshap4.cxx +++ b/svx/source/unodraw/unoshap4.cxx @@ -410,8 +410,13 @@ bool SvxOle2Shape::createObject( const SvGlobalName &aClassName ) if( SvxShape::getPropertyValue( UNO_NAME_OLE2_PERSISTNAME ) >>= aTmpStr ) aPersistName = aTmpStr; + uno::Sequence<beans::PropertyValue> objArgs(1); + objArgs[0].Name = "DefaultParentBaseURL"; + objArgs[0].Value <<= pPersist->getDocumentBaseURL(); //TODO/LATER: how to cope with creation failure?! - uno::Reference < embed::XEmbeddedObject > xObj( pPersist->getEmbeddedObjectContainer().CreateEmbeddedObject( aClassName.GetByteSequence(), aPersistName ) ); + uno::Reference<embed::XEmbeddedObject> xObj( + pPersist->getEmbeddedObjectContainer().CreateEmbeddedObject( + aClassName.GetByteSequence(), objArgs, aPersistName)); if( xObj.is() ) { Rectangle aRect = pOle2Obj->GetLogicRect(); |