summaryrefslogtreecommitdiff
path: root/sfx2/source/toolbox/tbxitem.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-02-25 15:17:03 +0200
committerNoel Grandin <noel@peralex.com>2013-03-04 14:22:33 +0200
commit244c7cdede13980c29850b7b68e9da16cdc61879 (patch)
treed06ef7ef2a9239302aedf5ba126e3e3e2fc4c146 /sfx2/source/toolbox/tbxitem.cxx
parentc4c736c2a4c9852f8ef8257c36d7b5481aa9e83a (diff)
fdo#46808, convert task::StatusIndicatorFactory to new style
the service already existed, it just needed an IDL file. Change-Id: I84c8e48e176ec3a38ac48a7abcec7463390523b9
Diffstat (limited to 'sfx2/source/toolbox/tbxitem.cxx')
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx
index bf7003d36c54..fe863b0b7e58 100644
--- a/sfx2/source/toolbox/tbxitem.cxx
+++ b/sfx2/source/toolbox/tbxitem.cxx
@@ -1485,7 +1485,7 @@ SfxPopupWindow* SfxAppToolBoxControl_Impl::CreatePopupWindow()
if ( !pMenu )
{
- ::framework::MenuConfiguration aConf( m_xServiceManager );
+ ::framework::MenuConfiguration aConf( comphelper::getComponentContext(m_xServiceManager) );
if ( m_aCommandURL == ".uno:AddDirect" )
pMenu = aConf.CreateBookmarkMenu( m_xFrame, BOOKMARK_NEWMENU );
else
@@ -1552,7 +1552,7 @@ void SfxAppToolBoxControl_Impl::StateChanged
// to check for supported URLs ...
if ( !pMenu )
{
- ::framework::MenuConfiguration aConf( m_xServiceManager );
+ ::framework::MenuConfiguration aConf( comphelper::getComponentContext(m_xServiceManager) );
// This toolbox controller is used for two popup menus (new documents and wizards!). Create the correct
// popup menu according to the slot ID our controller has been initialized with.
if ( nSlotId == SID_NEWDOCDIRECT )