Lines Matching refs:pItem
196 ImplStatusItem* pItem = mpItemList->First(); in ~StatusBar() local
197 while ( pItem ) in ~StatusBar()
199 delete pItem; in ~StatusBar()
200 pItem = mpItemList->Next(); in ~StatusBar()
270 ImplStatusItem* pItem; in ImplFormat() local
279 pItem = mpItemList->First(); in ImplFormat()
280 while ( pItem ) in ImplFormat()
282 if ( pItem->mbVisible ) in ImplFormat()
284 if ( pItem->mnBits & SIB_AUTOSIZE ) in ImplFormat()
287 mnItemsWidth += pItem->mnWidth + nOffset; in ImplFormat()
288 nOffset = pItem->mnOffset; in ImplFormat()
291 pItem = mpItemList->Next(); in ImplFormat()
323 pItem = mpItemList->First(); in ImplFormat()
324 while ( pItem ) in ImplFormat()
326 if ( pItem->mbVisible ) in ImplFormat()
328 if ( pItem->mnBits & SIB_AUTOSIZE ) in ImplFormat()
330 pItem->mnExtraWidth = nExtraWidth; in ImplFormat()
333 pItem->mnExtraWidth++; in ImplFormat()
338 pItem->mnExtraWidth = 0; in ImplFormat()
340 pItem->mnX = nX; in ImplFormat()
341 nX += pItem->mnWidth + pItem->mnExtraWidth + pItem->mnOffset; in ImplFormat()
344 pItem = mpItemList->Next(); in ImplFormat()
355 ImplStatusItem* pItem; in ImplGetItemRectPos() local
356 pItem = mpItemList->GetObject( nPos ); in ImplGetItemRectPos()
357 if ( pItem ) in ImplGetItemRectPos()
359 if ( pItem->mbVisible ) in ImplGetItemRectPos()
361 aRect.Left() = pItem->mnX; in ImplGetItemRectPos()
362 aRect.Right() = aRect.Left() + pItem->mnWidth + pItem->mnExtraWidth; in ImplGetItemRectPos()
377 ImplStatusItem* pItem; in ImplGetFirstVisiblePos() local
381 pItem = mpItemList->GetObject( nPos ); in ImplGetFirstVisiblePos()
382 if ( pItem ) in ImplGetFirstVisiblePos()
384 if ( pItem->mbVisible ) in ImplGetFirstVisiblePos()
439 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in ImplDrawItem() local
456 Size aTextSize( GetTextWidth( pItem->maText ), GetTextHeight() ); in ImplDrawItem()
457 Point aTextPos = ImplGetItemTextPos( aTextRectSize, aTextSize, pItem->mnBits ); in ImplDrawItem()
459 mpImplData->mpVirDev->DrawText( aTextPos, pItem->maText ); in ImplDrawItem()
464 DrawText( aTextPos, pItem->maText ); in ImplDrawItem()
469 if ( pItem->mnBits & SIB_USERDRAW ) in ImplDrawItem()
475 UserDrawEvent aODEvt( mpImplData->mpVirDev, Rectangle( Point(), aTextRectSize ), pItem->mnId ); in ImplDrawItem()
482 UserDrawEvent aODEvt( this, aTextRect, pItem->mnId ); in ImplDrawItem()
497 if( !(pItem->mnBits & SIB_FLAT) ) in ImplDrawItem()
501 if ( pItem->mnBits & SIB_IN ) in ImplDrawItem()
526 ImplCallEventListeners( VCLEVENT_STATUSBAR_DRAWITEM, (void*) sal_IntPtr(pItem->mnId) ); in ImplDrawItem()
745 ImplStatusItem* pItem = mpItemList->First(); in MouseButtonDown() local
746 while ( pItem ) in MouseButtonDown()
751 mnCurItemId = pItem->mnId; in MouseButtonDown()
763 pItem = mpItemList->Next(); in MouseButtonDown()
969 ImplStatusItem* pItem = mpItemList->First(); in DataChanged() local
971 while ( pItem ) in DataChanged()
973 long nWidth = GetTextWidth( pItem->maText ) + nFudge; in DataChanged()
974 if( nWidth > pItem->mnWidth + STATUSBAR_OFFSET ) in DataChanged()
975 pItem->mnWidth = nWidth + STATUSBAR_OFFSET; in DataChanged()
976 pItem = mpItemList->Next(); in DataChanged()
1027 ImplStatusItem* pItem = new ImplStatusItem; in InsertItem() local
1028 pItem->mnId = nItemId; in InsertItem()
1029 pItem->mnBits = nBits; in InsertItem()
1030 pItem->mnWidth = (long)nWidth+nFudge+STATUSBAR_OFFSET; in InsertItem()
1031 pItem->mnOffset = nOffset; in InsertItem()
1032 pItem->mpUserData = 0; in InsertItem()
1033 pItem->mbVisible = sal_True; in InsertItem()
1036 mpItemList->Insert( pItem, nPos ); in InsertItem()
1052 ImplStatusItem* pItem = mpItemList->Remove( nPos ); in RemoveItem() local
1053 delete pItem; in RemoveItem()
1071 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in ShowItem() local
1072 if ( !pItem->mbVisible ) in ShowItem()
1074 pItem->mbVisible = sal_True; in ShowItem()
1093 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in HideItem() local
1094 if ( pItem->mbVisible ) in HideItem()
1096 pItem->mbVisible = sal_False; in HideItem()
1152 ImplStatusItem* pItem = mpItemList->First(); in CopyItems() local
1153 while ( pItem ) in CopyItems()
1155 delete pItem; in CopyItems()
1156 pItem = mpItemList->Next(); in CopyItems()
1164 pItem = rStatusBar.mpItemList->GetObject( i ); in CopyItems()
1165 while ( pItem ) in CopyItems()
1167 mpItemList->Insert( new ImplStatusItem( *pItem ), LIST_APPEND ); in CopyItems()
1169 pItem = rStatusBar.mpItemList->GetObject( i ); in CopyItems()
1182 ImplStatusItem* pItem = mpItemList->First(); in Clear() local
1183 while ( pItem ) in Clear()
1185 delete pItem; in Clear()
1186 pItem = mpItemList->Next(); in Clear()
1210 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in GetItemId() local
1211 if ( pItem ) in GetItemId()
1212 return pItem->mnId; in GetItemId()
1221 ImplStatusItem* pItem = mpItemList->First(); in GetItemPos() local
1222 while ( pItem ) in GetItemPos()
1224 if ( pItem->mnId == nItemId ) in GetItemPos()
1227 pItem = mpItemList->Next(); in GetItemPos()
1288 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in GetItemTextPos() local
1294 Size( GetTextWidth( pItem->maText ), GetTextHeight() ), in GetItemTextPos()
1295 pItem->mnBits ); in GetItemTextPos()
1352 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in SetItemText() local
1354 if ( pItem->maText != rText ) in SetItemText()
1356 pItem->maText = rText; in SetItemText()
1360 long nWidth = GetTextWidth( pItem->maText ) + nFudge; in SetItemText()
1361 if( (nWidth > pItem->mnWidth + STATUSBAR_OFFSET) || in SetItemText()
1362 ((nWidth < pItem->mnWidth) && (mnDX - STATUSBAR_OFFSET) < mnItemsWidth )) in SetItemText()
1364 pItem->mnWidth = nWidth + STATUSBAR_OFFSET; in SetItemText()
1371 if ( pItem->mbVisible && !mbFormat && ImplIsItemUpdate() ) in SetItemText()
1401 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in SetItemCommand() local
1403 if ( pItem->maCommand != rCommand ) in SetItemCommand()
1404 pItem->maCommand = rCommand; in SetItemCommand()
1428 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in SetItemData() local
1429 pItem->mpUserData = pNewData; in SetItemData()
1432 if ( (pItem->mnBits & SIB_USERDRAW) && pItem->mbVisible && in SetItemData()
1451 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in RedrawItem() local
1452 if ( pItem && (pItem->mnBits & SIB_USERDRAW) && in RedrawItem()
1453 pItem->mbVisible && ImplIsItemUpdate() ) in RedrawItem()
1491 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in GetHelpText() local
1492 if ( !pItem->maHelpText.Len() && ( pItem->maHelpId.getLength() || pItem->maCommand.Len() )) in GetHelpText()
1497 if ( pItem->maCommand.Len() ) in GetHelpText()
1498 pItem->maHelpText = pHelp->GetHelpText( pItem->maCommand, this ); in GetHelpText()
1499 if ( !pItem->maHelpText.Len() && pItem->maHelpId.getLength() ) in GetHelpText()
1500 …pItem->maHelpText = pHelp->GetHelpText( rtl::OStringToOUString( pItem->maHelpId, RTL_TEXTENCODING_… in GetHelpText()
1504 return pItem->maHelpText; in GetHelpText()
1528 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in GetQuickHelpText() local
1529 return pItem->maQuickHelpText; in GetQuickHelpText()
1554 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in GetHelpId() local
1555 if ( pItem->maHelpId.getLength() ) in GetHelpId()
1556 aRet = pItem->maHelpId; in GetHelpId()
1558 aRet = ::rtl::OUStringToOString( pItem->maCommand, RTL_TEXTENCODING_UTF8 ); in GetHelpId()
1735 ImplStatusItem* pItem = mpItemList->GetObject( i ); in CalcWindowSizePixel() local
1736 nCalcWidth += pItem->mnWidth + nOffset; in CalcWindowSizePixel()
1737 nOffset = pItem->mnOffset; in CalcWindowSizePixel()
1795 ImplStatusItem* pItem = mpItemList->GetObject( nPos ); in SetAccessibleName() local
1797 if ( pItem->maAccessibleName != rName ) in SetAccessibleName()
1799 pItem->maAccessibleName = rName; in SetAccessibleName()
1800 ImplCallEventListeners( VCLEVENT_STATUSBAR_NAMECHANGED, (void*) sal_IntPtr(pItem->mnId) ); in SetAccessibleName()