summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/relationdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-07 17:46:55 +0200
committerNoel Grandin <noel@peralex.com>2013-01-15 09:56:00 +0200
commit92f14ced5e6f613772792d863a8c2cfeddfdae04 (patch)
tree320db909a032db6c3527eab2cce56ea5f84f6028 /dbaccess/source/ui/relationdesign
parente7018375cdf0e5e542631df9dee6023ff80b7840 (diff)
fdo#46808, Adapt frame::TaskCreator UNO service to new style
The service already existed, it just did not have an IDL file. Change-Id: I157c53d09b612da0178432100b8928013f811706
Diffstat (limited to 'dbaccess/source/ui/relationdesign')
-rw-r--r--dbaccess/source/ui/relationdesign/RelationController.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx
index 2e999e8e118e..8851f393796d 100644
--- a/dbaccess/source/ui/relationdesign/RelationController.cxx
+++ b/dbaccess/source/ui/relationdesign/RelationController.cxx
@@ -116,11 +116,11 @@ Sequence< ::rtl::OUString> SAL_CALL ORelationController::getSupportedServiceName
// -------------------------------------------------------------------------
Reference< XInterface > SAL_CALL ORelationController::Create(const Reference<XMultiServiceFactory >& _rxFactory)
{
- return *(new ORelationController(_rxFactory));
+ return *(new ORelationController(comphelper::getComponentContext(_rxFactory)));
}
DBG_NAME(ORelationController);
// -----------------------------------------------------------------------------
-ORelationController::ORelationController(const Reference< XMultiServiceFactory >& _rM)
+ORelationController::ORelationController(const Reference< XComponentContext >& _rM)
: OJoinController(_rM)
,m_nThreadEvent(0)
,m_bRelationsPossible(sal_True)
@@ -161,7 +161,7 @@ void ORelationController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue
case ID_BROWSER_SAVEDOC:
{
OSL_ENSURE(isEditable(),"Slot ID_BROWSER_SAVEDOC should not be enabled!");
- if(!::dbaui::checkDataSourceAvailable(::comphelper::getString(getDataSource()->getPropertyValue(PROPERTY_NAME)), comphelper::getComponentContext(getORB())))
+ if(!::dbaui::checkDataSourceAvailable(::comphelper::getString(getDataSource()->getPropertyValue(PROPERTY_NAME)), getORB()))
{
String aMessage(ModuleRes(STR_DATASOURCE_DELETED));
OSQLWarningBox( getView(), aMessage ).Execute();
@@ -249,7 +249,7 @@ void ORelationController::impl_initialize()
// -----------------------------------------------------------------------------
sal_Bool ORelationController::Construct(Window* pParent)
{
- setView( * new ORelationDesignView( pParent, *this, comphelper::getComponentContext(getORB()) ) );
+ setView( * new ORelationDesignView( pParent, *this, getORB() ) );
OJoinController::Construct(pParent);
return sal_True;
}