summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-12 13:06:52 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-12 13:09:16 +0200
commitbebf8ccfba37f77d6a43c7874249b31736467b17 (patch)
tree26c7e289be78b2bf77ed672202f1093f1eb5a77a /svx/source
parente7808c250f1b82ca9566fc12c4d7de33c58fcb1b (diff)
i#98430: Import at least the shape.
The image that is inside is dropped though, we do not have support for that in editeng. Change-Id: I16dc1656e6f71fd80136bc39233decef4e1d4069
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/unodraw/unomod.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx
index f8af587091aa..3ae9b269b336 100644
--- a/svx/source/unodraw/unomod.cxx
+++ b/svx/source/unodraw/unomod.cxx
@@ -49,6 +49,7 @@
#include <svx/svdobj.hxx>
#include <svx/svdpage.hxx>
#include <svx/unoshape.hxx>
+#include <svx/xmlgrhlp.hxx>
#include <com/sun/star/text/textfield/Type.hpp>
@@ -183,6 +184,13 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoDrawMSFactory::createInstance(
return uno::Reference< uno::XInterface >( (drawing::XShape*) SvxDrawPage::CreateShapeByTypeAndInventor( nT, nI ) );
}
}
+ else if ( rServiceSpecifier == "com.sun.star.document.ImportGraphicObjectResolver" )
+ {
+ SvXMLGraphicHelper* pGraphicHelper = SvXMLGraphicHelper::Create( GRAPHICHELPER_MODE_READ );
+ uno::Reference< uno::XInterface> xRet( static_cast< ::cppu::OWeakObject* >( pGraphicHelper ) );
+ pGraphicHelper->release();
+ return xRet;
+ }
uno::Reference< uno::XInterface > xRet( createTextField( rServiceSpecifier ) );
if( !xRet.is() )