diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-06 15:08:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-12 10:14:45 +0200 |
commit | 36d0933b6689c31abe65c1fdfa10d18e22d1e958 (patch) | |
tree | efb57749b81492ffd45e508e2cc87b7d9a148f7c /sfx2 | |
parent | a74854cb9aaeb260175d3174185631fc5d37bf9b (diff) |
fdo#46808, convert some svtools code to XComponentContext
Change-Id: Icf939095f130e684db88a8563c56f4eb1e6079bc
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/tbxctrl.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/toolbox/tbxitem.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/inc/sfx2/tbxctrl.hxx b/sfx2/inc/sfx2/tbxctrl.hxx index f675140c752a..c5a890a2a87f 100644 --- a/sfx2/inc/sfx2/tbxctrl.hxx +++ b/sfx2/inc/sfx2/tbxctrl.hxx @@ -80,7 +80,7 @@ enum SfxPopupWindowType class SfxFrameStatusListener : public svt::FrameStatusListener { public: - SfxFrameStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager, + SfxFrameStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame, SfxStatusListenerInterface* pCallee ); virtual ~SfxFrameStatusListener(); diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index f88a781da7d4..d2c2ac8d6e0e 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -1016,10 +1016,10 @@ Window* SfxToolBoxControl::CreateItemWindow( Window * ) //-------------------------------------------------------------------- SfxFrameStatusListener::SfxFrameStatusListener( - const Reference< XMultiServiceFactory >& rServiceManager, + const Reference< XComponentContext >& rxContext, const Reference< XFrame >& xFrame, SfxStatusListenerInterface* pCallee ) : - svt::FrameStatusListener( rServiceManager, xFrame ), + svt::FrameStatusListener( rxContext, xFrame ), m_pCallee( pCallee ) { } @@ -1224,7 +1224,7 @@ SfxFrameStatusListener* SfxPopupWindow::GetOrCreateStatusListener() if ( !m_xStatusListener.is() ) { m_pStatusListener = new SfxFrameStatusListener( - ::comphelper::getProcessServiceFactory(), + ::comphelper::getProcessComponentContext(), m_xFrame, this ); m_xStatusListener = Reference< XComponent >( static_cast< cppu::OWeakObject* >( |