summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-31 09:54:28 +0200
committerNoel Grandin <noel@peralex.com>2013-06-03 10:00:01 +0200
commite6c13f2846c684410e060701cbf1deb9bcaec890 (patch)
tree7c18df0ad2de8297cff389c091714b3eedd92621 /basic
parentfdo#46808, Convert office::Quickstart service to new style (diff)
downloadcore-e6c13f2846c684410e060701cbf1deb9bcaec890.tar.gz
core-e6c13f2846c684410e060701cbf1deb9bcaec890.zip
fdo#46808, Convert XMultiServiceFactory to XComponentContext
Change-Id: Ice5ec3a056f7f2f5184523bda1c709ccac876736
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/eventatt.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx
index 68ba8319816e..e7ab71579983 100644
--- a/basic/source/classes/eventatt.cxx
+++ b/basic/source/classes/eventatt.cxx
@@ -423,7 +423,7 @@ void RTL_Impl_CreateUnoDialog( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrit
(void)pBasic;
(void)bWrite;
- Reference< XMultiServiceFactory > xMSF( comphelper::getProcessServiceFactory() );
+ Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() );
// We need at least 1 parameter
if ( rPar.Count() < 2 )
@@ -450,8 +450,8 @@ void RTL_Impl_CreateUnoDialog( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrit
}
// Create new uno dialog
- Reference< XNameContainer > xDialogModel( xMSF->createInstance(
- OUString("com.sun.star.awt.UnoControlDialogModel")), UNO_QUERY );
+ Reference< XNameContainer > xDialogModel( xContext->getServiceManager()->createInstanceWithContext(
+ "com.sun.star.awt.UnoControlDialogModel", xContext), UNO_QUERY );
if( !xDialogModel.is() )
{
return;
@@ -462,7 +462,6 @@ void RTL_Impl_CreateUnoDialog( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrit
{
return;
}
- Reference< XComponentContext > xContext( comphelper::getComponentContext( xMSF ) );
// Import the DialogModel
Reference< XInputStream > xInput( xISP->createInputStream() );