diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-03 08:34:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-03 10:00:03 +0200 |
commit | d209e133191853f12557d879d1dcda7a0309dac6 (patch) | |
tree | f49624949123d6ae5486b817daafaf7fb7778a4b /forms/source/component/Currency.cxx | |
parent | 2838b8eb5ead00780ed9ed9410abee8b8d53a9a4 (diff) |
fdo#46808, Convert comphelper::ComponentContext in forms module
Change-Id: I8a9913d964633381f00c0a4885cc655805fa1974
Diffstat (limited to 'forms/source/component/Currency.cxx')
-rw-r--r-- | forms/source/component/Currency.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx index c47f18d428d8..0e1c78fe5587 100644 --- a/forms/source/component/Currency.cxx +++ b/forms/source/component/Currency.cxx @@ -22,6 +22,7 @@ #include <unotools/localedatawrapper.hxx> #include <vcl/svapp.hxx> #include <unotools/syslocale.hxx> +#include <comphelper/processfactory.hxx> //......................................................................... namespace frm @@ -43,7 +44,7 @@ using namespace ::com::sun::star::util; // OCurrencyControl //================================================================== //------------------------------------------------------------------ -OCurrencyControl::OCurrencyControl(const Reference<XMultiServiceFactory>& _rxFactory) +OCurrencyControl::OCurrencyControl(const Reference<XComponentContext>& _rxFactory) :OBoundControl(_rxFactory, VCL_CONTROL_CURRENCYFIELD) { } @@ -51,7 +52,7 @@ OCurrencyControl::OCurrencyControl(const Reference<XMultiServiceFactory>& _rxFac //------------------------------------------------------------------ InterfaceRef SAL_CALL OCurrencyControl_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) { - return *(new OCurrencyControl(_rxFactory)); + return *(new OCurrencyControl( comphelper::getComponentContext(_rxFactory) )); } //------------------------------------------------------------------------------ @@ -77,7 +78,7 @@ StringSequence SAL_CALL OCurrencyControl::getSupportedServiceNames() throw() //------------------------------------------------------------------ InterfaceRef SAL_CALL OCurrencyModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) { - return *(new OCurrencyModel(_rxFactory)); + return *(new OCurrencyModel( comphelper::getComponentContext(_rxFactory) )); } //------------------------------------------------------------------------------ @@ -134,7 +135,7 @@ void OCurrencyModel::implConstruct() //------------------------------------------------------------------ DBG_NAME( OCurrencyModel ) //------------------------------------------------------------------ -OCurrencyModel::OCurrencyModel(const Reference<XMultiServiceFactory>& _rxFactory) +OCurrencyModel::OCurrencyModel(const Reference<XComponentContext>& _rxFactory) :OEditBaseModel( _rxFactory, VCL_CONTROLMODEL_CURRENCYFIELD, FRM_SUN_CONTROL_CURRENCYFIELD, sal_False, sal_True ) // use the old control name for compytibility reasons { @@ -147,7 +148,7 @@ OCurrencyModel::OCurrencyModel(const Reference<XMultiServiceFactory>& _rxFactory } //------------------------------------------------------------------ -OCurrencyModel::OCurrencyModel( const OCurrencyModel* _pOriginal, const Reference<XMultiServiceFactory>& _rxFactory ) +OCurrencyModel::OCurrencyModel( const OCurrencyModel* _pOriginal, const Reference<XComponentContext>& _rxFactory ) :OEditBaseModel( _pOriginal, _rxFactory ) { DBG_CTOR( OCurrencyModel, NULL ); |