Kaydet (Commit) 98b5f116 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use typed ToolBox::SetMenuButtonHdl Link

Change-Id: I00cd35374294ccdcc0ac3223ae81ba8129b9a5d7
üst e1b8ae4b
......@@ -138,7 +138,7 @@ class ToolBarManager : public ToolbarManager_Base
DECL_LINK_TYPED( DataChanged, DataChangedEvent const *, void );
DECL_LINK( MiscOptionsChanged, void* );
DECL_LINK( MenuButton, ToolBox * );
DECL_LINK_TYPED( MenuButton, ToolBox *, void );
DECL_LINK( MenuSelect, Menu * );
DECL_LINK( MenuDeactivate, Menu * );
DECL_LINK_TYPED(AsyncUpdateControllersHdl, Timer *, void);
......
......@@ -1811,18 +1811,16 @@ IMPL_LINK_TYPED( ToolBarManager, Command, CommandEvent const *, pCmdEvt, void )
}
}
IMPL_LINK( ToolBarManager, MenuButton, ToolBox*, pToolBar )
IMPL_LINK_TYPED( ToolBarManager, MenuButton, ToolBox*, pToolBar, void )
{
SolarMutexGuard g;
if ( m_bDisposed )
return 1;
return;
pToolBar->UpdateCustomMenu();
// remove all entries that do not come from the toolbar itself (fdo#38276)
ImplClearPopupMenu( pToolBar );
return 0;
}
IMPL_LINK( ToolBarManager, MenuSelect, Menu*, pMenu )
......
......@@ -520,7 +520,7 @@ public:
bool IsMenuEnabled() const;
PopupMenu* GetMenu() const;
void UpdateCustomMenu();
void SetMenuButtonHdl( const Link<>& rLink );
void SetMenuButtonHdl( const Link<ToolBox *, void>& rLink );
// open custommenu
void ExecuteCustomMenu();
......
......@@ -141,7 +141,7 @@ struct ImplToolBoxPrivateData
ImplSVEvent * mnEventId;
// called when menu button is clicked and before the popup menu is executed
Link<> maMenuButtonHdl;
Link<ToolBox *, void> maMenuButtonHdl;
// a dummy item representing the custom menu button
ImplToolItem maMenubuttonItem;
......
......@@ -1773,7 +1773,7 @@ PopupMenu* ToolBox::GetMenu() const
return mpData->mpMenu;
}
void ToolBox::SetMenuButtonHdl( const Link<>& rLink )
void ToolBox::SetMenuButtonHdl( const Link<ToolBox *, void>& rLink )
{
mpData->maMenuButtonHdl = rLink;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment