summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmundo.cxx2
-rw-r--r--svx/source/form/fmview.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx
index e24623d04e8e..1203c9c93d57 100644
--- a/svx/source/form/fmundo.cxx
+++ b/svx/source/form/fmundo.cxx
@@ -115,7 +115,7 @@ private:
try
{
- ::comphelper::ComponentContext const aContext( ::comphelper::getProcessServiceFactory() );
+ ::comphelper::ComponentContext const aContext( ::comphelper::getProcessComponentContext() );
Reference< XScriptListener > const xScriptListener( aContext.createComponent( "ooo.vba.EventListener" ), UNO_QUERY_THROW );
Reference< XPropertySet > const xListenerProps( xScriptListener, UNO_QUERY_THROW );
// SfxObjectShellRef is good here since the model controls the lifetime of the shell
diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx
index abd632ba6838..24bb95852a42 100644
--- a/svx/source/form/fmview.cxx
+++ b/svx/source/form/fmview.cxx
@@ -93,7 +93,7 @@ FmFormView::FmFormView( FmFormModel* pModel, OutputDevice* pOut )
void FmFormView::Init()
{
pFormShell = NULL;
- pImpl = new FmXFormView(::comphelper::getProcessServiceFactory(),this);
+ pImpl = new FmXFormView(::comphelper::getProcessComponentContext(),this);
pImpl->acquire();
//////////////////////////////////////////////////////////////////////
@@ -594,7 +594,7 @@ void FmFormView::createControlLabelPair( OutputDevice* _pOutDev, sal_Int32 _nXOf
SdrPage* _pLabelPage, SdrPage* _pControlPage, SdrModel* _pModel, SdrUnoObj*& _rpLabel, SdrUnoObj*& _rpControl )
{
FmXFormView::createControlLabelPair(
- ::comphelper::getProcessServiceFactory(),
+ ::comphelper::getProcessComponentContext(),
*_pOutDev, _nXOffsetMM, _nYOffsetMM,
_rxField, _rxNumberFormats,
_nControlObjectID, _rFieldPostfix, _nInventor, _nLabelObjectID,