/source/.gradle/ /source/.idea/ /source/assets/ /source/assets_fullUI/ /source/assets_strippedUI/ /source/build/ /source/captures/ /source/jni/Application.mk /source/jniLibs/ /source/liboSettings.gradle /source/local.properties /source/native-code.cxx /source/obj/ /source/source.iml /core Git repository'/>
summaryrefslogtreecommitdiff
path: root/forms
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
parent2838b8eb5ead00780ed9ed9410abee8b8d53a9a4 (diff)
fdo#46808, Convert comphelper::ComponentContext in forms module
Change-Id: I8a9913d964633381f00c0a4885cc655805fa1974
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/Button.cxx13
-rw-r--r--forms/source/component/Button.hxx2
-rw-r--r--forms/source/component/CheckBox.cxx11
-rw-r--r--forms/source/component/CheckBox.hxx2
-rw-r--r--forms/source/component/Columns.cxx6
-rw-r--r--forms/source/component/Columns.hxx8
-rw-r--r--forms/source/component/ComboBox.cxx21
-rw-r--r--forms/source/component/ComboBox.hxx2
-rw-r--r--forms/source/component/Currency.cxx11
-rw-r--r--forms/source/component/Currency.hxx2
-rw-r--r--forms/source/component/DatabaseForm.cxx20
-rw-r--r--forms/source/component/DatabaseForm.hxx2
-rw-r--r--forms/source/component/Date.cxx14
-rw-r--r--forms/source/component/Date.hxx2
-rw-r--r--forms/source/component/Edit.cxx17
-rw-r--r--forms/source/component/Edit.hxx2
-rw-r--r--forms/source/component/EditBase.cxx4
-rw-r--r--forms/source/component/File.cxx7
-rw-r--r--forms/source/component/FixedText.cxx7
-rw-r--r--forms/source/component/FormComponent.cxx24
-rw-r--r--forms/source/component/FormattedField.cxx12
-rw-r--r--forms/source/component/FormattedField.hxx2
-rw-r--r--forms/source/component/FormattedFieldWrapper.cxx29
-rw-r--r--forms/source/component/FormattedFieldWrapper.hxx6
-rw-r--r--forms/source/component/FormsCollection.cxx5
-rw-r--r--forms/source/component/FormsCollection.hxx2
-rw-r--r--forms/source/component/Grid.cxx9
-rw-r--r--forms/source/component/GroupBox.cxx11
-rw-r--r--forms/source/component/GroupBox.hxx2
-rw-r--r--forms/source/component/Hidden.cxx7
-rw-r--r--forms/source/component/ImageButton.cxx11
-rw-r--r--forms/source/component/ImageButton.hxx2
-rw-r--r--forms/source/component/ImageControl.cxx17
-rw-r--r--forms/source/component/ImageControl.hxx2
-rw-r--r--forms/source/component/ListBox.cxx17
-rw-r--r--forms/source/component/ListBox.hxx2
-rw-r--r--forms/source/component/Numeric.cxx11
-rw-r--r--forms/source/component/Numeric.hxx2
-rw-r--r--forms/source/component/Pattern.cxx14
-rw-r--r--forms/source/component/Pattern.hxx2
-rw-r--r--forms/source/component/RadioButton.cxx11
-rw-r--r--forms/source/component/RadioButton.hxx2
-rw-r--r--forms/source/component/Time.cxx14
-rw-r--r--forms/source/component/Time.hxx2
-rw-r--r--forms/source/component/cachedrowset.cxx13
-rw-r--r--forms/source/component/cachedrowset.hxx2
-rw-r--r--forms/source/component/clickableimage.cxx7
-rw-r--r--forms/source/component/clickableimage.hxx2
-rw-r--r--forms/source/component/navigationbar.cxx7
-rw-r--r--forms/source/component/refvaluecomponent.cxx4
-rw-r--r--forms/source/component/refvaluecomponent.hxx2
-rw-r--r--forms/source/component/scrollbar.cxx4
-rw-r--r--forms/source/component/spinbutton.cxx4
-rw-r--r--forms/source/helper/commandimageprovider.cxx13
-rw-r--r--forms/source/helper/controlfeatureinterception.cxx2
-rw-r--r--forms/source/helper/formnavigation.cxx4
-rw-r--r--forms/source/helper/urltransformer.cxx4
-rw-r--r--forms/source/inc/FormComponent.hxx34
-rw-r--r--forms/source/inc/InterfaceContainer.hxx6
-rw-r--r--forms/source/inc/commandimageprovider.hxx4
-rw-r--r--forms/source/inc/controlfeatureinterception.hxx3
-rw-r--r--forms/source/inc/formnavigation.hxx9
-rw-r--r--forms/source/inc/forms_module.hxx3
-rw-r--r--forms/source/inc/urltransformer.hxx5
-rw-r--r--forms/source/misc/InterfaceContainer.cxx22
-rw-r--r--forms/source/richtext/richtextmodel.cxx4
-rw-r--r--forms/source/runtime/formoperations.cxx11
-rw-r--r--forms/source/runtime/formoperations.hxx7
-rw-r--r--forms/source/solar/component/navbarcontrol.cxx8
-rw-r--r--forms/source/solar/component/navbarcontrol.hxx4
70 files changed, 290 insertions, 269 deletions
diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx
index b7c759aeedb9..0866a233c531 100644
--- a/forms/source/component/Button.cxx
+++ b/forms/source/component/Button.cxx
@@ -24,6 +24,7 @@
#include <comphelper/streamsection.hxx>
#include <comphelper/basicio.hxx>
+#include <comphelper/processfactory.hxx>
#include <tools/diagnose_ex.h>
#include <tools/debug.hxx>
#include <tools/urlobj.hxx>
@@ -55,11 +56,11 @@ DBG_NAME(OButtonModel)
//------------------------------------------------------------------
InterfaceRef SAL_CALL OButtonModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory)
{
- return *(new OButtonModel(_rxFactory));
+ return *(new OButtonModel( comphelper::getComponentContext(_rxFactory) ));
}
//------------------------------------------------------------------
-OButtonModel::OButtonModel(const Reference<XMultiServiceFactory>& _rxFactory)
+OButtonModel::OButtonModel(const Reference<XComponentContext>& _rxFactory)
:OClickableImageBaseModel( _rxFactory, VCL_CONTROLMODEL_COMMANDBUTTON, FRM_SUN_CONTROL_COMMANDBUTTON )
// use the old control name for compatibility reasons
,m_aResetHelper( *this, m_aMutex )
@@ -88,7 +89,7 @@ Sequence< Type > OButtonModel::_getTypes()
}
//------------------------------------------------------------------
-OButtonModel::OButtonModel( const OButtonModel* _pOriginal, const Reference<XMultiServiceFactory>& _rxFactory )
+OButtonModel::OButtonModel( const OButtonModel* _pOriginal, const Reference<XComponentContext>& _rxFactory )
:OClickableImageBaseModel( _pOriginal, _rxFactory )
,m_aResetHelper( *this, m_aMutex )
,m_eDefaultState( _pOriginal->m_eDefaultState )
@@ -339,7 +340,7 @@ void OButtonModel::impl_resetNoBroadcast_nothrow()
//------------------------------------------------------------------
InterfaceRef SAL_CALL OButtonControl_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory)
{
- return *(new OButtonControl(_rxFactory));
+ return *(new OButtonControl( comphelper::getComponentContext(_rxFactory) ));
}
//------------------------------------------------------------------------------
@@ -364,7 +365,7 @@ StringSequence OButtonControl::getSupportedServiceNames() throw()
}
//------------------------------------------------------------------------------
-OButtonControl::OButtonControl(const Reference<XMultiServiceFactory>& _rxFactory)
+OButtonControl::OButtonControl(const Reference<XComponentContext>& _rxFactory)
:OClickableImageBaseControl(_rxFactory, VCL_CONTROL_COMMANDBUTTON)
,OFormNavigationHelper( _rxFactory )
,m_nClickEvent( 0 )
@@ -681,7 +682,7 @@ sal_Int16 OButtonControl::getModelUrlFeatureId( ) const
// is it a feature URL?
if ( isFormControllerURL( sUrl ) )
{
- OFormNavigationMapper aMapper( m_aContext.getLegacyServiceFactory() );
+ OFormNavigationMapper aMapper( m_xContext );
nFeatureId = aMapper.getFeatureId( sUrl );
}
}
diff --git a/forms/source/component/Button.hxx b/forms/source/component/Button.hxx
index 0128cebb5b01..cc8090d105ae 100644
--- a/forms/source/component/Button.hxx
+++ b/forms/source/component/Button.hxx
@@ -130,7 +130,7 @@ protected:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
public:
- OButtonControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
+ OButtonControl(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext>& _rxFactory);