Lines Matching refs:pItem
147 ImplHeadItem* pItem = mpItemList->First(); in ~HeaderBar() local
148 while ( pItem ) in ~HeaderBar()
150 delete pItem; in ~HeaderBar()
151 pItem = mpItemList->Next(); in ~HeaderBar()
222 ImplHeadItem* pItem; in ImplHitTest() local
229 pItem = mpItemList->GetObject( i ); in ImplHitTest()
231 if ( rPos.X() < (nX+pItem->mnSize) ) in ImplHitTest()
245 if ( !(pItem->mnBits & HIB_FIXED) && (rPos.X() >= (nX+pItem->mnSize-HEADERBAR_SPLITOFF)) ) in ImplHitTest()
248 nMouseOff = rPos.X()-(nX+pItem->mnSize); in ImplHitTest()
260 if ( pItem->mnBits & HIB_FIXED ) in ImplHitTest()
265 nX += pItem->mnSize; in ImplHitTest()
270 pItem = mpItemList->GetObject( nCount-1 ); in ImplHitTest()
271 if ( (pItem->mnSize < 4) && (rPos.X() < (nX+HEADERBAR_SPLITOFF)) ) in ImplHitTest()
360 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in ImplDrawItem() local
361 HeaderBarItemBits nBits = pItem->mnBits; in ImplDrawItem()
399 pItem->maOutText = pItem->maText; in ImplDrawItem()
400 Size aImageSize = pItem->maImage.GetSizePixel(); in ImplDrawItem()
401 Size aTxtSize( pDev->GetTextWidth( pItem->maOutText ), 0 ); in ImplDrawItem()
402 if ( pItem->maOutText.Len() ) in ImplDrawItem()
428 pItem->maOutText.AppendAscii( "..." ); in ImplDrawItem()
431 pItem->maOutText.Erase( pItem->maOutText.Len()-3-1, 1 ); in ImplDrawItem()
432 nTxtWidth = pDev->GetTextWidth( pItem->maOutText ); in ImplDrawItem()
434 while ( (nTxtWidth > nMaxTxtWidth) && (pItem->maOutText.Len() > 3) ); in ImplDrawItem()
435 if ( pItem->maOutText.Len() == 3 ) in ImplDrawItem()
438 pItem->maOutText.Erase(); in ImplDrawItem()
479 if ( pItem->maOutText.Len() || (nArrowWidth && aTxtSize.Height()) ) in ImplDrawItem()
501 if ( pItem->maOutText.Len() ) in ImplDrawItem()
509 pDev->DrawText( Point( nTxtPos, nTxtPosY ), pItem->maOutText ); in ImplDrawItem()
511 …pDev->DrawCtrlText( Point( nTxtPos, nTxtPosY ), pItem->maOutText, 0, STRING_LEN, TEXT_DRAW_DISABLE… in ImplDrawItem()
563 pDev->DrawImage( Point( nImagePos, nImagePosY ), pItem->maImage, nStyle ); in ImplDrawItem()
574 if ( !(nBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE)) && !pItem->maText.Len() ) in ImplDrawItem()
638 UserDrawEvent aODEvt( pDev, aRect, pItem->mnId ); in ImplDrawItem()
706 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in ImplStartDrag() local
711 if ( ((pItem->mnBits & HIB_CLICKABLE) && !(pItem->mnBits & HIB_FLAT)) || in ImplStartDrag()
712 (mbDragable && !(pItem->mnBits & HIB_FIXEDPOS)) ) in ImplStartDrag()
731 mnCurItemId = pItem->mnId; in ImplStartDrag()
741 mnCurItemId = pItem->mnId; in ImplStartDrag()
912 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in ImplEndDrag() local
913 pItem->mnSize += nDelta; in ImplEndDrag()
941 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in MouseButtonDown() local
946 mnCurItemId = pItem->mnId; in MouseButtonDown()
1114 ImplHeadItem* pItem = mpItemList->GetObject( GetItemPos( nItemId ) ); in RequestHelp() local
1118 if ( pItem->maOutText != pItem->maText ) in RequestHelp()
1119 aStr = pItem->maText; in RequestHelp()
1120 else if ( pItem->maText.Len() ) in RequestHelp()
1243 ImplHeadItem* pItem = new ImplHeadItem; in InsertItem() local
1244 pItem->mnId = nItemId; in InsertItem()
1245 pItem->mnBits = nBits; in InsertItem()
1246 pItem->mnSize = nSize; in InsertItem()
1247 pItem->maImage = rImage; in InsertItem()
1248 pItem->mpUserData = 0; in InsertItem()
1249 mpItemList->Insert( pItem, nPos ); in InsertItem()
1265 ImplHeadItem* pItem = new ImplHeadItem; in InsertItem() local
1266 pItem->mnId = nItemId; in InsertItem()
1267 pItem->mnBits = nBits; in InsertItem()
1268 pItem->mnSize = nSize; in InsertItem()
1269 pItem->maText = rText; in InsertItem()
1270 pItem->mpUserData = 0; in InsertItem()
1271 mpItemList->Insert( pItem, nPos ); in InsertItem()
1289 ImplHeadItem* pItem = new ImplHeadItem; in InsertItem() local
1290 pItem->mnId = nItemId; in InsertItem()
1291 pItem->mnBits = nBits; in InsertItem()
1292 pItem->mnSize = nSize; in InsertItem()
1293 pItem->maImage = rImage; in InsertItem()
1294 pItem->maText = rText; in InsertItem()
1295 pItem->mpUserData = 0; in InsertItem()
1296 mpItemList->Insert( pItem, nPos ); in InsertItem()
1309 ImplHeadItem* pItem = mpItemList->Remove( nPos ); in RemoveItem() local
1310 delete pItem; in RemoveItem()
1324 ImplHeadItem* pItem = mpItemList->Remove( nPos ); in MoveItem() local
1327 mpItemList->Insert( pItem, nNewPos ); in MoveItem()
1338 ImplHeadItem* pItem = mpItemList->First(); in Clear() local
1339 while ( pItem ) in Clear()
1341 delete pItem; in Clear()
1342 pItem = mpItemList->Next(); in Clear()
1375 ImplHeadItem* pItem = mpItemList->First(); in GetItemPos() local
1376 while ( pItem ) in GetItemPos()
1378 if ( pItem->mnId == nItemId ) in GetItemPos()
1380 pItem = mpItemList->Next(); in GetItemPos()
1390 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in GetItemId() local
1391 if ( pItem ) in GetItemId()
1392 return pItem->mnId; in GetItemId()
1431 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in SetItemSize() local
1432 if ( pItem->mnSize != nNewSize ) in SetItemSize()
1434 pItem->mnSize = nNewSize; in SetItemSize()
1458 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in SetItemBits() local
1459 if ( pItem->mnBits != nNewBits ) in SetItemBits()
1461 pItem->mnBits = nNewBits; in SetItemBits()
1563 ImplHeadItem* pItem = mpItemList->GetObject( nPos ); in GetHelpText() local
1564 if ( !pItem->maHelpText.Len() && pItem->maHelpId.getLength() ) in GetHelpText()
1568 …pItem->maHelpText = pHelp->GetHelpText( rtl::OStringToOUString( pItem->maHelpId, RTL_TEXTENCODING_… in GetHelpText()
1571 return pItem->maHelpText; in GetHelpText()
1604 ImplHeadItem* pItem = mpItemList->First(); in CalcWindowSizePixel() local
1605 while ( pItem ) in CalcWindowSizePixel()
1608 long nImageHeight = pItem->maImage.GetSizePixel().Height(); in CalcWindowSizePixel()
1609 if ( !(pItem->mnBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE)) && pItem->maText.Len() ) in CalcWindowSizePixel()
1615 aSize.Width() += pItem->mnSize; in CalcWindowSizePixel()
1617 pItem = mpItemList->Next(); in CalcWindowSizePixel()