Lines Matching refs:pMenu
515 Menu *pMenu; in Execute() local
517 GetCurrentMenues( pPopup, pMenuBar, pMenu ); in Execute()
1036 Menu* pMenu = GetMatchingMenu( pBase ); in WriteControlData() local
1038 if ( pMenu ) // Menus in WriteControlData()
1041 for ( i = 0; i < pMenu->GetItemCount() ; i++ ) in WriteControlData()
1043 sal_uInt16 nID = pMenu->GetItemId( i ); in WriteControlData()
1047 aName = pMenu->GetHelpText( nID ); in WriteControlData()
1049 aName = pMenu->GetItemText( nID ); in WriteControlData()
1052 …if ( pMenu->GetItemType( i ) == MENUITEM_STRING || pMenu->GetItemType( i ) == MENUITEM_IMAGE || p… in WriteControlData()
1055 switch ( pMenu->GetItemType( i ) ) in WriteControlData()
1073 DBG_ERROR1( "Unknown MENUITEM %i", pMenu->GetItemType( i ) ); in WriteControlData()
1075 if ( pMenu->GetItemCommand(nID).Len() || ( nConf & DH_MODE_ALLWIN ) ) in WriteControlData()
1076 … pRet->GenReturn ( RET_WinInfo, Str2Id( pMenu->GetItemCommand(nID) ), (comm_ULONG)0, in WriteControlData()
1078 if ( !pMenu->GetItemCommand(nID).Len() || ( nConf & DH_MODE_ALLWIN ) ) in WriteControlData()
2475 MenuBar* pMenu = GetDocFrameMenuBar( pControl ); in Execute() local
2476 if ( pMenu->HasCloser() ) in Execute()
2481 pMenu->GetCloserHdl().Call( pMenu ); in Execute()
2741 Menu *pMenu; in Execute() local
2743 sal_uInt16 nErr = GetCurrentMenues( pPopup, pMenuBar, pMenu ); in Execute()
2745 if ( !pMenu ) in Execute()
2761 nItemCount = pMenu->GetItemCount(); in Execute()
2762 if ( pMenu->GetMenuFlags() & MENU_FLAG_HIDEDISABLEDENTRIES ) in Execute()
2765 for ( sal_uInt16 i = 0 ; i < pMenu->GetItemCount() ; i++ ) in Execute()
2767 if ( !pMenu->IsItemEnabled( pMenu->GetItemId( i ) ) ) in Execute()
2771 if ( pMenu->GetItemType( i ) == MENUITEM_SEPARATOR && bLastWasSeperator ) in Execute()
2773 bLastWasSeperator = pMenu->GetItemType( i ) == MENUITEM_SEPARATOR; in Execute()
2791 if ( pMenu->GetMenuFlags() & MENU_FLAG_HIDEDISABLEDENTRIES ) in Execute()
2795 for ( sal_uInt16 i = 0 ; i < pMenu->GetItemCount() && nVisibleCount < nNr1 ; i++ ) in Execute()
2797 if ( pMenu->IsItemEnabled( pMenu->GetItemId( i ) ) in Execute()
2798 && !( pMenu->GetItemType( i ) == MENUITEM_SEPARATOR && bLastWasSeperator ) ) in Execute()
2801 bLastWasSeperator = pMenu->GetItemType( i ) == MENUITEM_SEPARATOR; in Execute()
2824 pRet->GenReturn ( RET_Value, nMethodId, (comm_ULONG)pMenu->GetItemId(nPhysicalIndex-1) ); in Execute()
2829 sal_uInt16 nLogicalPos = pMenu->GetItemPos(nNr1); in Execute()
2830 … if ( MENU_ITEM_NOTFOUND != nLogicalPos && pMenu->GetMenuFlags() & MENU_FLAG_HIDEDISABLEDENTRIES ) in Execute()
2832 if ( !pMenu->IsItemEnabled( nNr1 ) ) in Execute()
2839 if ( !pMenu->IsItemEnabled( pMenu->GetItemId( sal::static_int_cast< sal_uInt16 >(i) ) ) || in Execute()
2840 …( pMenu->GetItemType( sal::static_int_cast< sal_uInt16 >(i) ) == MENUITEM_SEPARATOR && bLastWasSep… in Execute()
2842 …bLastWasSeperator = pMenu->GetItemType( sal::static_int_cast< sal_uInt16 >(i) ) == MENUITEM_SEPARA… in Execute()
2852 …pRet->GenReturn ( RET_Value, nMethodId, (comm_BOOL)(pMenu->GetItemType(nPhysicalIndex-1) == MENUIT… in Execute()
2857 pRet->GenReturn ( RET_Value, nMethodId, (comm_BOOL)pMenu->IsItemChecked(nNr1) ); in Execute()
2862 pRet->GenReturn ( RET_Value, nMethodId, (comm_BOOL)pMenu->IsItemEnabled(nNr1) ); in Execute()
2867 pRet->GenReturn ( RET_Value, nMethodId, (String)pMenu->GetItemText(nNr1) ); in Execute()
2872 pRet->GenReturn ( RET_Value, nMethodId, (String)pMenu->GetItemCommand(nNr1) ); in Execute()
2877 pRet->GenReturn ( RET_Value, nMethodId, (sal_Bool)(pMenu->GetPopupMenu(nNr1) != NULL) ); in Execute()
2882 if ( pMenu->GetPopupMenu(nNr1) ) in Execute()
3654 sal_uInt16 StatementList::GetCurrentMenues( PopupMenu *&pPopup, MenuBar *&pMenuBar, Menu *&pMenu ) in GetCurrentMenues() argument
3660 pMenu = pMenuBar; in GetCurrentMenues()
3663 pMenu = PopupMenu::GetActivePopupMenu(); in GetCurrentMenues()
3667 if ( !pMenu ) in GetCurrentMenues()
3672 pPopup = pMenu->GetPopupMenu( aSubMenuId1 ); in GetCurrentMenues()
3673 pMenu = pPopup; in GetCurrentMenues()
3676 if ( pMenu && aSubMenuId2 ) in GetCurrentMenues()
3678 pPopup = pMenu->GetPopupMenu( aSubMenuId2 ); in GetCurrentMenues()
3679 pMenu = pPopup; in GetCurrentMenues()
3682 if ( pMenu && aSubMenuId3 ) in GetCurrentMenues()
3684 pPopup = pMenu->GetPopupMenu( aSubMenuId3 ); in GetCurrentMenues()
3685 pMenu = pPopup; in GetCurrentMenues()