summaryrefslogtreecommitdiffstats
path: root/forms/source/component/CheckBox.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-06-03 08:34:09 +0200
committerNoel Grandin <noel@peralex.com>2013-06-03 10:00:03 +0200
commitd209e133191853f12557d879d1dcda7a0309dac6 (patch)
treef49624949123d6ae5486b817daafaf7fb7778a4b /forms/source/component/CheckBox.cxx
parentfdo#46808, Convert ComponentContext in connectivity,extension.. (diff)
downloadcore-d209e133191853f12557d879d1dcda7a0309dac6.tar.gz
core-d209e133191853f12557d879d1dcda7a0309dac6.zip
fdo#46808, Convert comphelper::ComponentContext in forms module
Change-Id: I8a9913d964633381f00c0a4885cc655805fa1974
Diffstat (limited to 'forms/source/component/CheckBox.cxx')
-rw-r--r--forms/source/component/CheckBox.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx
index 3c79725a9b7d..67751f218f53 100644
--- a/forms/source/component/CheckBox.cxx
+++ b/forms/source/component/CheckBox.cxx
@@ -23,6 +23,7 @@
#include "services.hxx"
#include <tools/debug.hxx>
#include <comphelper/basicio.hxx>
+#include <comphelper/processfactory.hxx>
//.........................................................................
namespace frm
@@ -45,7 +46,7 @@ using namespace ::com::sun::star::form::binding;
//==================================================================
//------------------------------------------------------------------
-OCheckBoxControl::OCheckBoxControl(const Reference<XMultiServiceFactory>& _rxFactory)
+OCheckBoxControl::OCheckBoxControl(const Reference<XComponentContext>& _rxFactory)
:OBoundControl(_rxFactory, VCL_CONTROL_CHECKBOX)
{
}
@@ -53,7 +54,7 @@ OCheckBoxControl::OCheckBoxControl(const Reference<XMultiServiceFactory>& _rxFac
//------------------------------------------------------------------
InterfaceRef SAL_CALL OCheckBoxControl_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) throw (RuntimeException)
{
- return *(new OCheckBoxControl(_rxFactory));
+ return *(new OCheckBoxControl( comphelper::getComponentContext(_rxFactory) ));
}
//------------------------------------------------------------------------------
@@ -74,13 +75,13 @@ StringSequence SAL_CALL OCheckBoxControl::getSupportedServiceNames() throw(::com
//==================================================================
InterfaceRef SAL_CALL OCheckBoxModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) throw (RuntimeException)
{
- return *(new OCheckBoxModel(_rxFactory));
+ return *(new OCheckBoxModel( comphelper::getComponentContext(_rxFactory) ));
}
//------------------------------------------------------------------
DBG_NAME( OCheckBoxModel )
//------------------------------------------------------------------
-OCheckBoxModel::OCheckBoxModel(const Reference<XMultiServiceFactory>& _rxFactory)
+OCheckBoxModel::OCheckBoxModel(const Reference<XComponentContext>& _rxFactory)
:OReferenceValueComponent( _rxFactory, VCL_CONTROLMODEL_CHECKBOX, FRM_SUN_CONTROL_CHECKBOX, sal_True )
// use the old control name for compytibility reasons
{
@@ -91,7 +92,7 @@ OCheckBoxModel::OCheckBoxModel(const Reference<XMultiServiceFactory>& _rxFactory
}
//------------------------------------------------------------------
-OCheckBoxModel::OCheckBoxModel( const OCheckBoxModel* _pOriginal, const Reference<XMultiServiceFactory>& _rxFactory )
+OCheckBoxModel::OCheckBoxModel( const OCheckBoxModel* _pOriginal, const Reference<XComponentContext>& _rxFactory )
:OReferenceValueComponent( _pOriginal, _rxFactory )
{
DBG_CTOR( OCheckBoxModel, NULL );