summaryrefslogtreecommitdiffstats
path: root/framework/source/uielement/addonstoolbarwrapper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-26 15:15:19 +0200
committerNoel Grandin <noel@peralex.com>2013-04-23 16:05:55 +0200
commit1dec1f2f7efc579dedaec0535e3a750945039019 (patch)
tree761ae4a0a92cbdbb952def9ad808e1ff7c9de516 /framework/source/uielement/addonstoolbarwrapper.cxx
parentfdo#46808, convert svx::FindTextFieldControl to XComponentContext (diff)
downloadcore-1dec1f2f7efc579dedaec0535e3a750945039019.tar.gz
core-1dec1f2f7efc579dedaec0535e3a750945039019.zip
fdo#46808, convert framework::AddonsToolBarWrapper to XComponentContext
Diffstat (limited to 'framework/source/uielement/addonstoolbarwrapper.cxx')
-rw-r--r--framework/source/uielement/addonstoolbarwrapper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/uielement/addonstoolbarwrapper.cxx b/framework/source/uielement/addonstoolbarwrapper.cxx
index 2921b020ab84..3153b2abbafc 100644
--- a/framework/source/uielement/addonstoolbarwrapper.cxx
+++ b/framework/source/uielement/addonstoolbarwrapper.cxx
@@ -53,9 +53,9 @@ using namespace ::com::sun::star::ui;
namespace framework
{
-AddonsToolBarWrapper::AddonsToolBarWrapper( const Reference< XMultiServiceFactory >& xServiceManager ) :
+AddonsToolBarWrapper::AddonsToolBarWrapper( const Reference< XComponentContext >& xContext ) :
UIElementWrapperBase( UIElementType::TOOLBAR ),
- m_xServiceManager( xServiceManager )
+ m_xContext( xContext )
{
}
@@ -116,7 +116,7 @@ void SAL_CALL AddonsToolBarWrapper::initialize( const Sequence< Any >& aArgument
sal_uLong nStyles = WB_LINESPACING | WB_BORDER | WB_SCROLL | WB_MOVEABLE | WB_3DLOOK | WB_DOCKABLE | WB_SIZEABLE | WB_CLOSEABLE;
pToolBar = new ToolBox( pWindow, nStyles );
- pToolBarManager = new AddonsToolBarManager( comphelper::getComponentContext(m_xServiceManager), xFrame, m_aResourceURL, pToolBar );
+ pToolBarManager = new AddonsToolBarManager( m_xContext, xFrame, m_aResourceURL, pToolBar );
m_xToolBarManager = Reference< XComponent >( static_cast< OWeakObject *>( pToolBarManager ), UNO_QUERY );
}
}