summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-06-03 13:22:24 +0200
committerNoel Grandin <noel@peralex.com>2013-06-05 08:13:21 +0200
commit9a49980efa3522eb89f66eb185c98009236ffa89 (patch)
tree271602627acedd147d88bf4016b1b92d1f89fc26 /xmlscript
parentac40f246cd6991abaef2bf341a7d2d0d66885ccb (diff)
fdo#46808, Convert various comphelper::ComponentContext
..to regular XComponenContext Change-Id: I08f9092ae818db5c1e37880625b83607c860680b
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_import.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index 754efaf4e017..3d218ddf9fde 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -52,8 +52,6 @@
#include <com/sun/star/script/vba/XVBACompatibility.hpp>
#include <com/sun/star/util/NumberFormatsSupplier.hpp>
-#include <comphelper/componentcontext.hxx>
-
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::frame;
@@ -885,8 +883,9 @@ bool ImportContext::importImageURLProperty(
{
uno::Sequence< Any > aArgs( 1 );
aArgs[ 0 ] <<= xDocStorage->getDocumentStorage();
- ::comphelper::ComponentContext aContext( _pImport->getComponentContext() );
- aContext.createComponentWithArguments( "com.sun.star.comp.Svx.GraphicImportHelper" , aArgs, xGraphicResolver );
+ xGraphicResolver.set(
+ _pImport->getComponentContext()->getServiceManager()->createInstanceWithArgumentsAndContext( "com.sun.star.comp.Svx.GraphicImportHelper" , aArgs, _pImport->getComponentContext() ),
+ UNO_QUERY );
if ( xGraphicResolver.is() )
{
OUString aTmp("vnd.sun.star.Package:");