Lines Matching refs:pMenuItemHandler

527 			MenuItemHandler* pMenuItemHandler = *p;  in statusChanged()  local
528 if ( pMenuItemHandler->aMenuItemURL == aFeatureURL ) in statusChanged()
531 … sal_Bool bMenuItemEnabled( m_pVCLMenu->IsItemEnabled( pMenuItemHandler->nItemId )); in statusChanged()
540 ( pMenuItemHandler->aMenuItemURL.equalsAscii (".uno:Paste" ) ) || in statusChanged()
541 ( pMenuItemHandler->aMenuItemURL.equalsAscii (".uno:PasteSpecial" ) ) || in statusChanged()
542 …( pMenuItemHandler->aMenuItemURL.equalsAscii (".uno:PasteClipboard") ) // special for draw/im… in statusChanged()
549 m_pVCLMenu->EnableItem( pMenuItemHandler->nItemId, bEnabledItem ); in statusChanged()
554 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
555 m_pVCLMenu->CheckItem( pMenuItemHandler->nItemId, bCheckmark ); in statusChanged()
557 MenuItemBits nBits = m_pVCLMenu->GetItemBits( pMenuItemHandler->nItemId ); in statusChanged()
560 m_pVCLMenu->SetItemBits( pMenuItemHandler->nItemId, nBits | MIB_CHECKABLE ); in statusChanged()
588 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
589 m_pVCLMenu->SetItemText( pMenuItemHandler->nItemId, aItemText ); in statusChanged()
594 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, aVisibilityStatus.bVisible ); in statusChanged()
597 m_pVCLMenu->ShowItem( pMenuItemHandler->nItemId, sal_True ); in statusChanged()
603 pMenuItemHandler->xMenuItemDispatch.clear(); in statusChanged()
740 MenuItemHandler* pMenuItemHandler = *p; in disposing() local
741 if ( pMenuItemHandler->xMenuItemDispatch.is() && in disposing()
742 pMenuItemHandler->xMenuItemDispatch == Source.Source ) in disposing()
745 pMenuItemDisposing = pMenuItemHandler; in disposing()
913 MenuItemHandler* pMenuItemHandler = *p; in IMPL_LINK() local
917 if ( pMenuItemHandler->aMenuItemURL == aCmdHelpIndex ) in IMPL_LINK()
920 pMenu->SetAccelKey( pMenuItemHandler->nItemId, aKeyCode ); in IMPL_LINK()
922 else if ( pMenu->GetPopupMenu( pMenuItemHandler->nItemId ) == 0 ) in IMPL_LINK()
923 pMenu->SetAccelKey( pMenuItemHandler->nItemId, pMenuItemHandler->aKeyCode ); in IMPL_LINK()
943 MenuItemHandler* pMenuItemHandler = *p; in IMPL_LINK() local
944 if ( pMenuItemHandler ) in IMPL_LINK()
946 if ( !pMenuItemHandler->xMenuItemDispatch.is() && in IMPL_LINK()
947 !pMenuItemHandler->xSubMenuManager.is() ) in IMPL_LINK()
952 if ( !(( pMenuItemHandler->nItemId >= START_ITEMID_WINDOWLIST && in IMPL_LINK()
953 pMenuItemHandler->nItemId < END_ITEMID_WINDOWLIST ))) in IMPL_LINK()
957 … ::rtl::OUString aItemCommand = pMenu->GetItemCommand( pMenuItemHandler->nItemId ); in IMPL_LINK()
961 aItemCommand += ::rtl::OUString::valueOf( (sal_Int32)pMenuItemHandler->nItemId ); in IMPL_LINK()
962 pMenu->SetItemCommand( pMenuItemHandler->nItemId, aItemCommand ); in IMPL_LINK()
972 pMenu->HideItem( pMenuItemHandler->nItemId ); in IMPL_LINK()
976 …xMenuItemDispatch = xDispatchProvider->queryDispatch( aTargetURL, pMenuItemHandler->aTargetFrame, … in IMPL_LINK()
981 if ( !pMenuItemHandler->xPopupMenuController.is() && in IMPL_LINK()
984 bPopupMenu = CreatePopupMenuController( pMenuItemHandler ); in IMPL_LINK()
986 else if ( pMenuItemHandler->xPopupMenuController.is() ) in IMPL_LINK()
989 pMenuItemHandler->xPopupMenuController->updatePopupMenu(); in IMPL_LINK()
991 if (PopupMenu* pThisPopup = pMenu->GetPopupMenu( pMenuItemHandler->nItemId )) in IMPL_LINK()
992 … pMenu->EnableItem( pMenuItemHandler->nItemId, pThisPopup->GetItemCount() ? true : false ); in IMPL_LINK()
995 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
999 pMenuItemHandler->xMenuItemDispatch = xMenuItemDispatch; in IMPL_LINK()
1000 pMenuItemHandler->aMenuItemURL = aTargetURL.Complete; in IMPL_LINK()
1010 pMenu->EnableItem( pMenuItemHandler->nItemId, sal_False ); in IMPL_LINK()
1013 else if ( pMenuItemHandler->xPopupMenuController.is() ) in IMPL_LINK()
1016 pMenuItemHandler->xPopupMenuController->updatePopupMenu(); in IMPL_LINK()
1017 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1019 else if ( pMenuItemHandler->xMenuItemDispatch.is() ) in IMPL_LINK()
1024 aTargetURL.Complete = pMenuItemHandler->aMenuItemURL; in IMPL_LINK()
1027 pMenuItemHandler->xMenuItemDispatch->addStatusListener( in IMPL_LINK()
1029 pMenuItemHandler->xMenuItemDispatch->removeStatusListener( in IMPL_LINK()
1036 else if ( pMenuItemHandler->xSubMenuManager.is() ) in IMPL_LINK()
1037 lcl_CheckForChildren(pMenu, pMenuItemHandler->nItemId); in IMPL_LINK()
1130 MenuItemHandler* pMenuItemHandler = GetMenuItemHandler( nCurItemId ); in IMPL_LINK() local
1131 if ( pMenuItemHandler && pMenuItemHandler->xMenuItemDispatch.is() ) in IMPL_LINK()
1133 aTargetURL.Complete = pMenuItemHandler->aMenuItemURL; in IMPL_LINK()
1144 xDispatch = pMenuItemHandler->xMenuItemDispatch; in IMPL_LINK()
1218 sal_Bool MenuBarManager::CreatePopupMenuController( MenuItemHandler* pMenuItemHandler ) in CreatePopupMenuController() argument
1221 rtl::OUString aItemCommand( pMenuItemHandler->aMenuItemURL ); in CreatePopupMenuController()
1253 pMenuItemHandler->xPopupMenuController = xPopupMenuController; in CreatePopupMenuController()
1254 xPopupMenuController->setPopupMenu( pMenuItemHandler->xPopupMenu ); in CreatePopupMenuController()
1517 MenuItemHandler* pMenuItemHandler = *p; in FillMenuManager() local
1521 if ( pMenuItemHandler->aMenuItemURL == aCmdHelpIndex ) in FillMenuManager()
1524 pMenu->SetAccelKey( pMenuItemHandler->nItemId, aKeyCode ); in FillMenuManager()
1526 else if ( pMenu->GetPopupMenu( pMenuItemHandler->nItemId ) == 0 ) in FillMenuManager()
1527 pMenu->SetAccelKey( pMenuItemHandler->nItemId, pMenuItemHandler->aKeyCode ); in FillMenuManager()
2036 MenuItemHandler* pMenuItemHandler = new MenuItemHandler( in AddMenu() local
2040 pMenuItemHandler->aMenuItemURL = _sItemCommand; in AddMenu()
2041 m_aMenuItemHandlerVector.push_back( pMenuItemHandler ); in AddMenu()
2098 MenuItemHandler* pMenuItemHandler = new MenuItemHandler( in Init() local
2102 m_aMenuItemHandlerVector.push_back( pMenuItemHandler ); in Init()
2109 MenuItemHandler* pMenuItemHandler = new MenuItemHandler( nItemId, xStatusListener, xDispatch ); in Init() local
2114 pMenuItemHandler->aTargetFrame = pAddonAttributes->aTargetFrame; in Init()
2117 pMenuItemHandler->aMenuItemURL = aItemCommand; in Init()
2128 pAddonMenu->SetPopupMenu( pMenuItemHandler->nItemId, pCtlPopupMenu ); in Init()
2129pMenuItemHandler->xPopupMenu = Reference< com::sun::star::awt::XPopupMenu >( (OWeakObject *)pVCLXP… in Init()
2133 m_aMenuItemHandlerVector.push_back( pMenuItemHandler ); in Init()