Lines Matching refs:pMenu
853 ::boost::shared_ptr<PopupMenu> pMenu = CreatePopupMenu(rMenuData); in ShowPopupMenu()
854 pMenu->SetSelectHdl(LINK(this, SidebarController, OnMenuItemSelected)); in ShowPopupMenu()
859 pMenu->Execute(mpParentWindow, aBox, POPUPMENU_EXECUTE_DOWN); in ShowPopupMenu()
888 ::boost::shared_ptr<PopupMenu> pMenu (new PopupMenu()); in CreatePopupMenu()
889 FloatingWindow* pMenuWindow = dynamic_cast<FloatingWindow*>(pMenu->GetWindow()); in CreatePopupMenu()
910 pMenu->InsertItem(nMenuIndex, iItem->msDisplayName, MIB_RADIOCHECK); in CreatePopupMenu()
911 pMenu->CheckItem(nMenuIndex, iItem->mbIsCurrentDeck ? sal_True : sal_False); in CreatePopupMenu()
912 … pMenu->EnableItem(nMenuIndex, (iItem->mbIsEnabled&&iItem->mbIsActive) ? sal_True : sal_False); in CreatePopupMenu()
928 pMenu->InsertSeparator(); in CreatePopupMenu()
932 pMenu->InsertItem(MID_LOCK_TASK_PANEL, String(SfxResId(STR_SFX_DOCK))); in CreatePopupMenu()
934 pMenu->InsertItem(MID_UNLOCK_TASK_PANEL, String(SfxResId(STR_SFX_UNDOCK))); in CreatePopupMenu()
939 pMenu->InsertItem(MID_CUSTOMIZATION, String(SfxResId(STRING_CUSTOMIZATION))); in CreatePopupMenu()
940 pMenu->SetPopupMenu(MID_CUSTOMIZATION, pCustomizationMenu); in CreatePopupMenu()
942 pMenu->RemoveDisabledEntries(sal_False, sal_False); in CreatePopupMenu()
944 return pMenu; in CreatePopupMenu()
950 IMPL_LINK(SidebarController, OnMenuItemSelected, Menu*, pMenu) in IMPL_LINK() argument
952 if (pMenu == NULL) in IMPL_LINK()
954 … OSL_ENSURE(pMenu!=NULL, "sfx2::sidebar::SidebarController::OnMenuItemSelected: illegal menu!"); in IMPL_LINK()
958 pMenu->Deactivate(); in IMPL_LINK()
959 const sal_Int32 nIndex (pMenu->GetCurItemId()); in IMPL_LINK()
981 if (pMenu->GetItemBits(nIndex) == MIB_CHECKABLE) in IMPL_LINK()