Lines Matching refs:nPos
197 long HeaderBar::ImplGetItemPos( sal_uInt16 nPos ) const in ImplGetItemPos()
200 for ( sal_uInt16 i = 0; i < nPos; i++ ) in ImplGetItemPos()
207 Rectangle HeaderBar::ImplGetItemRect( sal_uInt16 nPos ) const in ImplGetItemRect()
209 Rectangle aRect( ImplGetItemPos( nPos ), 0, 0, mnDY-1 ); in ImplGetItemRect()
210 aRect.Right() = aRect.Left() + mpItemList->GetObject( nPos )->mnSize - 1; in ImplGetItemRect()
220 long& nMouseOff, sal_uInt16& nPos ) const in ImplHitTest()
238 nPos = i-1; in ImplHitTest()
243 nPos = i; in ImplHitTest()
273 nPos = nCount-1; in ImplHitTest()
333 sal_uInt16 nPos, sal_Bool bHigh, sal_Bool bDrag, in ImplDrawItem() argument
360 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in ImplDrawItem()
646 void HeaderBar::ImplDrawItem( sal_uInt16 nPos, sal_Bool bHigh, sal_Bool bDrag, in ImplDrawItem() argument
649 Rectangle aRect = ImplGetItemRect( nPos ); in ImplDrawItem()
650 ImplDrawItem( this, nPos, bHigh, bDrag, aRect, pRect, 0 ); in ImplDrawItem()
655 void HeaderBar::ImplUpdate( sal_uInt16 nPos, sal_Bool bEnd, sal_Bool bDirect ) in ImplUpdate() argument
663 if ( nPos < nItemCount ) in ImplUpdate()
664 aRect = ImplGetItemRect( nPos ); in ImplUpdate()
679 for ( sal_uInt16 i = nPos; i < mpItemList->Count(); i++ ) in ImplUpdate()
701 sal_uInt16 nPos; in ImplStartDrag() local
702 sal_uInt16 nHitTest = ImplHitTest( rMousePos, mnMouseOff, nPos ); in ImplStartDrag()
706 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in ImplStartDrag()
742 mnItemDragPos = nPos; in ImplStartDrag()
748 ImplDrawItem( nPos, sal_True, mbItemDrag ); in ImplStartDrag()
765 sal_uInt16 nPos = GetItemPos( mnCurItemId ); in ImplDrag() local
770 Rectangle aItemRect = ImplGetItemRect( nPos ); in ImplDrag()
778 !(mpItemList->GetObject(nPos)->mnBits & HIB_FIXEDPOS) ) in ImplDrag()
783 ImplDrawItem( nPos, sal_True, mbItemDrag ); in ImplDrag()
811 if ( mnItemDragPos < nPos ) in ImplDrag()
814 (mnItemDragPos < nPos) ) in ImplDrag()
817 else if ( mnItemDragPos > nPos ) in ImplDrag()
820 (mnItemDragPos > nPos) ) in ImplDrag()
826 (nOldItemDragPos != nPos) && in ImplDrag()
829 ImplInvertDrag( nPos, nOldItemDragPos ); in ImplDrag()
835 ImplDrawItem( nPos, !bNewOutDrag, mbItemDrag ); in ImplDrag()
840 (mnItemDragPos != nPos) && in ImplDrag()
844 ImplInvertDrag( nPos, mnItemDragPos ); in ImplDrag()
852 Rectangle aItemRect = ImplGetItemRect( nPos ); in ImplDrag()
877 sal_uInt16 nPos = GetItemPos( mnCurItemId ); in ImplEndDrag() local
878 ImplDrawItem( nPos ); in ImplEndDrag()
885 sal_uInt16 nPos = GetItemPos( mnCurItemId ); in ImplEndDrag() local
892 if ( (mnItemDragPos != nPos) && in ImplEndDrag()
895 ImplInvertDrag( nPos, mnItemDragPos ); in ImplEndDrag()
899 ImplDrawItem( nPos ); in ImplEndDrag()
904 ImplUpdate( nPos ); in ImplEndDrag()
912 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in ImplEndDrag()
914 ImplUpdate( nPos, sal_True ); in ImplEndDrag()
937 sal_uInt16 nPos; in MouseButtonDown() local
938 sal_uInt16 nHitTest = ImplHitTest( rMEvt.GetPosPixel(), nTemp, nPos ); in MouseButtonDown()
941 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in MouseButtonDown()
1236 long nSize, HeaderBarItemBits nBits, sal_uInt16 nPos ) in InsertItem() argument
1249 mpItemList->Insert( pItem, nPos ); in InsertItem()
1252 ImplUpdate( nPos, sal_True ); in InsertItem()
1258 long nSize, HeaderBarItemBits nBits, sal_uInt16 nPos ) in InsertItem() argument
1271 mpItemList->Insert( pItem, nPos ); in InsertItem()
1274 ImplUpdate( nPos, sal_True ); in InsertItem()
1282 sal_uInt16 nPos ) in InsertItem() argument
1296 mpItemList->Insert( pItem, nPos ); in InsertItem()
1299 ImplUpdate( nPos, sal_True ); in InsertItem()
1306 sal_uInt16 nPos = GetItemPos( nItemId ); in RemoveItem() local
1307 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in RemoveItem()
1309 ImplHeadItem* pItem = mpItemList->Remove( nPos ); in RemoveItem()
1311 ImplUpdate( nPos, sal_True ); in RemoveItem()
1319 sal_uInt16 nPos = GetItemPos( nItemId ); in MoveItem() local
1320 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in MoveItem()
1322 if ( nPos != nNewPos ) in MoveItem()
1324 ImplHeadItem* pItem = mpItemList->Remove( nPos ); in MoveItem()
1325 if ( nNewPos < nPos ) in MoveItem()
1326 nPos = nNewPos; in MoveItem()
1328 ImplUpdate( nPos, sal_True ); in MoveItem()
1388 sal_uInt16 HeaderBar::GetItemId( sal_uInt16 nPos ) const in GetItemId()
1390 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in GetItemId()
1401 sal_uInt16 nPos = 0; in GetItemId() local
1402 while ( nPos < mpItemList->Count() ) in GetItemId()
1404 if ( ImplGetItemRect( nPos ).IsInside( rPos ) ) in GetItemId()
1405 return GetItemId( nPos ); in GetItemId()
1407 nPos++; in GetItemId()
1418 sal_uInt16 nPos = GetItemPos( nItemId ); in GetItemRect() local
1419 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetItemRect()
1420 aRect = ImplGetItemRect( nPos ); in GetItemRect()
1428 sal_uInt16 nPos = GetItemPos( nItemId ); in SetItemSize() local
1429 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in SetItemSize()
1431 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in SetItemSize()
1435 ImplUpdate( nPos, sal_True ); in SetItemSize()
1444 sal_uInt16 nPos = GetItemPos( nItemId ); in GetItemSize() local
1445 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetItemSize()
1446 return mpItemList->GetObject( nPos )->mnSize; in GetItemSize()
1455 sal_uInt16 nPos = GetItemPos( nItemId ); in SetItemBits() local
1456 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in SetItemBits()
1458 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in SetItemBits()
1462 ImplUpdate( nPos ); in SetItemBits()
1471 sal_uInt16 nPos = GetItemPos( nItemId ); in GetItemBits() local
1472 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetItemBits()
1473 return mpItemList->GetObject( nPos )->mnBits; in GetItemBits()
1482 sal_uInt16 nPos = GetItemPos( nItemId ); in SetItemData() local
1483 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in SetItemData()
1485 mpItemList->GetObject( nPos )->mpUserData = pNewData; in SetItemData()
1486 ImplUpdate( nPos ); in SetItemData()
1494 sal_uInt16 nPos = GetItemPos( nItemId ); in GetItemData() local
1495 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetItemData()
1496 return mpItemList->GetObject( nPos )->mpUserData; in GetItemData()
1505 sal_uInt16 nPos = GetItemPos( nItemId ); in SetItemImage() local
1506 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in SetItemImage()
1508 mpItemList->GetObject( nPos )->maImage = rImage; in SetItemImage()
1509 ImplUpdate( nPos ); in SetItemImage()
1517 sal_uInt16 nPos = GetItemPos( nItemId ); in GetItemImage() local
1518 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetItemImage()
1519 return mpItemList->GetObject( nPos )->maImage; in GetItemImage()
1528 sal_uInt16 nPos = GetItemPos( nItemId ); in SetItemText() local
1529 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in SetItemText()
1531 mpItemList->GetObject( nPos )->maText = rText; in SetItemText()
1532 ImplUpdate( nPos ); in SetItemText()
1540 sal_uInt16 nPos = GetItemPos( nItemId ); in GetItemText() local
1541 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetItemText()
1542 return mpItemList->GetObject( nPos )->maText; in GetItemText()
1551 sal_uInt16 nPos = GetItemPos( nItemId ); in SetHelpText() local
1552 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in SetHelpText()
1553 mpItemList->GetObject( nPos )->maHelpText = rText; in SetHelpText()
1560 sal_uInt16 nPos = GetItemPos( nItemId ); in GetHelpText() local
1561 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetHelpText()
1563 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in GetHelpText()
1581 sal_uInt16 nPos = GetItemPos( nItemId ); in SetHelpId() local
1582 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in SetHelpId()
1583 mpItemList->GetObject( nPos )->maHelpId = rHelpId; in SetHelpId()
1590 sal_uInt16 nPos = GetItemPos( nItemId ); in GetHelpId() local
1592 if ( nPos != HEADERBAR_ITEM_NOTFOUND ) in GetHelpId()
1593 aRet = mpItemList->GetObject( nPos )->maHelpId; in GetHelpId()