diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-25 22:29:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-27 09:45:56 +0000 |
commit | b737e913c4594d07270d9b59f6ca3792482e2356 (patch) | |
tree | 5d49a8a7f372df11813a5979111a83708d2cac66 /sfx2/source/menu/thessubmenu.cxx | |
parent | 1190dab820a60907559fb1e7d8e6e5d4d58ecfdf (diff) |
callcatcher: update unused list
Diffstat (limited to 'sfx2/source/menu/thessubmenu.cxx')
-rw-r--r-- | sfx2/source/menu/thessubmenu.cxx | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/sfx2/source/menu/thessubmenu.cxx b/sfx2/source/menu/thessubmenu.cxx index 1bda672e3610..21d44dc8ced5 100644 --- a/sfx2/source/menu/thessubmenu.cxx +++ b/sfx2/source/menu/thessubmenu.cxx @@ -46,75 +46,9 @@ #include <sfx2/viewsh.hxx> #include "thessubmenu.hxx" - using namespace ::com::sun::star; using ::rtl::OUString; - -// STATIC DATA ----------------------------------------------------------- - -SfxMenuControl* SfxThesSubMenuControl::CreateImpl( sal_uInt16 nId, Menu &rMenu, SfxBindings &rBindings ) -{ - return new SfxThesSubMenuControl(nId, rMenu, rBindings); -} - -/* - Constructor; sets the Select-Handler for the Menu and inserts it into - its Parent. - */ -SfxThesSubMenuControl::SfxThesSubMenuControl( sal_uInt16 nSlotId, Menu &rMenu, SfxBindings &rBindings ) - : SfxMenuControl( nSlotId, rBindings ), - pMenu(new PopupMenu), - rParent(rMenu) -{ - rMenu.SetPopupMenu(nSlotId, pMenu); - pMenu->SetSelectHdl(LINK(this, SfxThesSubMenuControl, MenuSelect)); - pMenu->Clear(); - rParent.EnableItem( GetId(), sal_False ); -} - - -SfxThesSubMenuControl::~SfxThesSubMenuControl() -{ - delete pMenu; -} - - -/* - Status notification: - If the functionality is disabled, the corresponding - menu entry in Parentmenu is disabled, otherwise it is enabled. - */ -void SfxThesSubMenuControl::StateChanged( - sal_uInt16 /*nSID*/, - SfxItemState eState, - const SfxPoolItem* /*pState*/ ) -{ - rParent.EnableItem(GetId(), SFX_ITEM_AVAILABLE == eState ); -} - - -/* - Select-Handler for Menus; - run the selected Verb, - */ -IMPL_LINK_INLINE_START( SfxThesSubMenuControl, MenuSelect, Menu *, pSelMenu ) -{ - const sal_uInt16 nSlotId = pSelMenu->GetCurItemId(); - if( nSlotId ) - GetBindings().Execute(nSlotId); - return 1; -} -IMPL_LINK_INLINE_END( SfxThesSubMenuControl, MenuSelect, Menu *, pSelMenu ) - - -PopupMenu* SfxThesSubMenuControl::GetPopup() const -{ - return pMenu; -} - - - OUString SfxThesSubMenuHelper::GetText( const String &rLookUpString, xub_StrLen nDelimPos ) |