summaryrefslogtreecommitdiff
path: root/extensions/source/abpilot/unodialogabp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-19 13:08:47 +0200
committerNoel Grandin <noel@peralex.com>2013-03-20 07:32:53 +0200
commita066525b42a1ab8dc60e10a5d62819c259904f32 (patch)
tree0c21130ff82a482ab80de0fcc3c73be0125d06f5 /extensions/source/abpilot/unodialogabp.cxx
parent6999a50efaaf802ccd4c7eb7957af17cc32602be (diff)
fdo#46808, Convert a bunch of comphelper::ComponentContext stuff
.. to Reference<XComponentContext> mostly in the dbaccess module, but it also affected some other modules. Change-Id: I09b3f6fe7a9b33498b11d98b5521b5aeeb8882be
Diffstat (limited to 'extensions/source/abpilot/unodialogabp.cxx')
-rw-r--r--extensions/source/abpilot/unodialogabp.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/source/abpilot/unodialogabp.cxx b/extensions/source/abpilot/unodialogabp.cxx
index f6799253653a..e3b24715c7e9 100644
--- a/extensions/source/abpilot/unodialogabp.cxx
+++ b/extensions/source/abpilot/unodialogabp.cxx
@@ -20,6 +20,7 @@
#include "unodialogabp.hxx"
#include <cppuhelper/typeprovider.hxx>
#include "abspilot.hxx"
+#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <vcl/msgbox.hxx>
@@ -44,7 +45,7 @@ namespace abp
//= OABSPilotUno
//=====================================================================
//---------------------------------------------------------------------
- OABSPilotUno::OABSPilotUno(const Reference< XMultiServiceFactory >& _rxORB)
+ OABSPilotUno::OABSPilotUno(const Reference< XComponentContext >& _rxORB)
:OGenericUnoDialog(_rxORB)
{
registerProperty( ::rtl::OUString("DataSourceName"), PROPERTY_ID_DATASOURCENAME, PropertyAttribute::READONLY ,
@@ -98,7 +99,7 @@ namespace abp
//---------------------------------------------------------------------
Reference< XInterface > SAL_CALL OABSPilotUno::Create(const Reference< XMultiServiceFactory >& _rxFactory)
{
- return *(new OABSPilotUno(_rxFactory));
+ return *(new OABSPilotUno( comphelper::getComponentContext(_rxFactory) ));
}
//---------------------------------------------------------------------
@@ -163,7 +164,7 @@ namespace abp
//--------------------------------------------------------------------------
Dialog* OABSPilotUno::createDialog(Window* _pParent)
{
- return new OAddessBookSourcePilot(_pParent, m_aContext.getLegacyServiceFactory());
+ return new OAddessBookSourcePilot(_pParent, m_aContext );
}
//--------------------------------------------------------------------------