diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-12-15 15:06:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-12-15 17:44:36 +0100 |
commit | 75a200f371d12ddaf5b82af10c8d4675babcdb5e (patch) | |
tree | bb207b61405c62cef54fe97599124a7f898b670e /svx/source | |
parent | 36a0abed4ab27abd77b502070d4e17e70e6afe7b (diff) |
svx: set BaseURL from SvxOle2Shape::createObject()
This is used from oox chart import code, cf.
oox::drawingml::Shape::finalizeXShape().
Change-Id: I7b2097f8d5740a590a6473797ab9436453fbf580
Diffstat (limited to 'svx/source')
-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(); |