Lines Matching refs:pItem
137 …for( ValueSetItem* pItem = mpImpl->mpItemList->First(); pItem; pItem = mpImpl->mpItemList->Next() ) in ImplDeleteItems() local
139 if( !pItem->maRect.IsEmpty() && ImplHasAccessibleListeners() ) in ImplDeleteItems()
143 aOldAny <<= pItem->GetAccessible( mpImpl->mbIsTransientChildrenDisabled ); in ImplDeleteItems()
147 delete pItem; in ImplDeleteItems()
216 void ValueSet::ImplFormatItem( ValueSetItem* pItem ) in ImplFormatItem() argument
218 if ( pItem->meType == VALUESETITEM_SPACE ) in ImplFormatItem()
221 Rectangle aRect = pItem->maRect; in ImplFormatItem()
253 if ( pItem == mpNoneItem ) in ImplFormatItem()
254 pItem->maText = GetText(); in ImplFormatItem()
260 if ( pItem == mpNoneItem ) in ImplFormatItem()
268 long nTxtWidth = GetTextWidth( pItem->maText ); in ImplFormatItem()
277 maVirDev.DrawText( aTxtPos, pItem->maText ); in ImplFormatItem()
281 maVirDev.DrawText( aTxtPos, pItem->maText ); in ImplFormatItem()
283 else if ( pItem->meType == VALUESETITEM_COLOR ) in ImplFormatItem()
285 maVirDev.SetFillColor( pItem->maColor ); in ImplFormatItem()
300 if ( pItem->meType == VALUESETITEM_USERDRAW ) in ImplFormatItem()
302 UserDrawEvent aUDEvt( &maVirDev, aRect, pItem->mnId ); in ImplFormatItem()
307 Size aImageSize = pItem->maImage.GetSizePixel(); in ImplFormatItem()
321 maVirDev.DrawImage( aPos, pItem->maImage, nImageStyle); in ImplFormatItem()
325 maVirDev.DrawImage( aPos, pItem->maImage, nImageStyle ); in ImplFormatItem()
524 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( i ); in Format() local
525 pItem->maRect.SetEmpty(); in Format()
613 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( i ); in Format() local
617 const sal_Bool bWasEmpty = pItem->maRect.IsEmpty(); in Format()
619 pItem->maRect.Left() = x; in Format()
620 pItem->maRect.Top() = y; in Format()
621 pItem->maRect.Right() = pItem->maRect.Left()+nItemWidth-1; in Format()
622 pItem->maRect.Bottom() = pItem->maRect.Top()+nItemHeight-1; in Format()
628 aNewAny <<= pItem->GetAccessible( mpImpl->mbIsTransientChildrenDisabled ); in Format()
632 ImplFormatItem( pItem ); in Format()
644 if( !pItem->maRect.IsEmpty() && ImplHasAccessibleListeners() ) in Format()
648 aOldAny <<= pItem->GetAccessible( mpImpl->mbIsTransientChildrenDisabled ); in Format()
652 pItem->maRect.SetEmpty(); in Format()
750 ValueSetItem* pItem; in ImplDrawSelect() local
752 pItem = mpImpl->mpItemList->GetObject( GetItemPos( nItemId ) ); in ImplDrawSelect()
756 pItem = mpNoneItem; in ImplDrawSelect()
759 pItem = ImplGetFirstItem(); in ImplDrawSelect()
760 if ( !bFocus || !pItem ) in ImplDrawSelect()
765 if ( pItem->maRect.IsEmpty() ) in ImplDrawSelect()
770 Rectangle aRect = pItem->maRect; in ImplDrawSelect()
905 ImplDrawItemText( pItem->maText ); in ImplDrawSelect()
1162 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( i ); in ImplGetItem() local
1163 if ( pItem->maRect.IsInside( rPos ) ) in ImplGetItem()
1203 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( i ); in ImplGetFirstItem() local
1204 if ( pItem->meType != VALUESETITEM_SPACE ) in ImplGetFirstItem()
1205 return pItem; in ImplGetFirstItem()
1220 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( n ); in ImplGetVisibleItemCount() local
1223 if( pItem->meType != VALUESETITEM_SPACE ) in ImplGetVisibleItemCount()
1239 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( n ); in ImplGetVisibleItem() local
1241 …if( ( pItem->meType != VALUESETITEM_SPACE ) && !pItem->maRect.IsEmpty() && ( nVisiblePos == nFound… in ImplGetVisibleItem()
1242 pRet = pItem; in ImplGetVisibleItem()
1305 ValueSetItem* pItem = ImplGetItem( ImplGetItem( rPos ) ); in ImplTracking() local
1306 if ( pItem && (pItem->meType != VALUESETITEM_SPACE) ) in ImplTracking()
1311 ImplHighlightItem( pItem->mnId ); in ImplTracking()
1326 ValueSetItem* pItem; in ImplEndTracking() local
1330 pItem = NULL; in ImplEndTracking()
1332 pItem = ImplGetItem( ImplGetItem( rPos ) ); in ImplEndTracking()
1334 if ( pItem && (pItem->meType != VALUESETITEM_SPACE) ) in ImplEndTracking()
1336 SelectItem( pItem->mnId ); in ImplEndTracking()
1357 ValueSetItem* pItem = ImplGetItem( ImplGetItem( rMEvt.GetPosPixel() ) ); in MouseButtonDown() local
1361 if ( pItem && (pItem->meType != VALUESETITEM_SPACE) ) in MouseButtonDown()
1365 ImplHighlightItem( pItem->mnId ); in MouseButtonDown()
1372 if ( pItem && (pItem->meType != VALUESETITEM_SPACE) && !rMEvt.IsMod2() ) in MouseButtonDown()
1374 if ( (pItem->mnBits & VIB_NODOUBLECLICK) || (rMEvt.GetClicks() == 1) ) in MouseButtonDown()
1379 ImplHighlightItem( pItem->mnId ); in MouseButtonDown()
1727 ValueSetItem* pItem = ImplGetItem( nItemPos ); in RequestHelp() local
1728 Rectangle aItemRect = pItem->maRect; in RequestHelp()
1735 Help::ShowQuickHelp( this, aItemRect, GetItemText( pItem->mnId ) ); in RequestHelp()
1837 ValueSetItem* pItem = new ValueSetItem( *this ); in InsertItem() local
1838 pItem->mnId = nItemId; in InsertItem()
1839 pItem->meType = VALUESETITEM_IMAGE; in InsertItem()
1840 pItem->maImage = rImage; in InsertItem()
1841 mpImpl->mpItemList->Insert( pItem, (sal_uLong)nPos ); in InsertItem()
1856 ValueSetItem* pItem = new ValueSetItem( *this ); in InsertItem() local
1857 pItem->mnId = nItemId; in InsertItem()
1858 pItem->meType = VALUESETITEM_COLOR; in InsertItem()
1859 pItem->maColor = rColor; in InsertItem()
1860 mpImpl->mpItemList->Insert( pItem, (sal_uLong)nPos ); in InsertItem()
1876 ValueSetItem* pItem = new ValueSetItem( *this ); in InsertItem() local
1877 pItem->mnId = nItemId; in InsertItem()
1878 pItem->meType = VALUESETITEM_IMAGE; in InsertItem()
1879 pItem->maImage = rImage; in InsertItem()
1880 pItem->maText = rText; in InsertItem()
1881 mpImpl->mpItemList->Insert( pItem, (sal_uLong)nPos ); in InsertItem()
1897 ValueSetItem* pItem = new ValueSetItem( *this ); in InsertItem() local
1898 pItem->mnId = nItemId; in InsertItem()
1899 pItem->meType = VALUESETITEM_COLOR; in InsertItem()
1900 pItem->maColor = rColor; in InsertItem()
1901 pItem->maText = rText; in InsertItem()
1902 mpImpl->mpItemList->Insert( pItem, (sal_uLong)nPos ); in InsertItem()
1915 ValueSetItem* pItem = new ValueSetItem( *this ); in InsertItem() local
1916 pItem->mnId = nItemId; in InsertItem()
1917 pItem->meType = VALUESETITEM_USERDRAW; in InsertItem()
1918 pItem->maText = rText; in InsertItem()
1919 mpImpl->mpItemList->Insert( pItem, (sal_uLong)nPos ); in InsertItem()
1933 ValueSetItem* pItem = new ValueSetItem( *this ); in InsertItem() local
1934 pItem->mnId = nItemId; in InsertItem()
1935 pItem->meType = VALUESETITEM_USERDRAW; in InsertItem()
1936 mpImpl->mpItemList->Insert( pItem, (sal_uLong)nPos ); in InsertItem()
1951 ValueSetItem* pItem = new ValueSetItem( *this ); in InsertSpace() local
1952 pItem->mnId = nItemId; in InsertSpace()
1953 pItem->meType = VALUESETITEM_SPACE; in InsertSpace()
1954 mpImpl->mpItemList->Insert( pItem, (sal_uLong)nPos ); in InsertSpace()
1993 ValueSetItem* pItem = rValueSet.mpImpl->mpItemList->First(); in CopyItems() local
1994 while ( pItem ) in CopyItems()
1998 pNewItem->mnId = pItem->mnId; in CopyItems()
1999 pNewItem->mnBits = pItem->mnBits; in CopyItems()
2000 pNewItem->meType = pItem->meType; in CopyItems()
2001 pNewItem->maImage = pItem->maImage; in CopyItems()
2002 pNewItem->maColor = pItem->maColor; in CopyItems()
2003 pNewItem->maText = pItem->maText; in CopyItems()
2004 pNewItem->mpData = pItem->mpData; in CopyItems()
2005 pNewItem->maRect = pItem->maRect; in CopyItems()
2009 pItem = rValueSet.mpImpl->mpItemList->Next(); in CopyItems()
2055 ValueSetItem* pItem = mpImpl->mpItemList->First(); in GetItemPos() local
2056 while ( pItem ) in GetItemPos()
2058 if ( pItem->mnId == nItemId ) in GetItemPos()
2060 pItem = mpImpl->mpItemList->Next(); in GetItemPos()
2070 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( nPos ); in GetItemId() local
2072 if ( pItem ) in GetItemId()
2073 return pItem->mnId; in GetItemId()
2268 ValueSetItem* pItem; in SelectItem() local
2270 pItem = mpImpl->mpItemList->GetObject(nPos); in SelectItem()
2272 pItem = mpNoneItem; in SelectItem()
2275 if (pItem != NULL) in SelectItem()
2276 …pItemAcc = ValueItemAcc::getImplementation(pItem->GetAccessible( mpImpl->mbIsTransientChildrenDisa… in SelectItem()
2345 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( nPos ); in SetItemImage() local
2346 pItem->meType = VALUESETITEM_IMAGE; in SetItemImage()
2347 pItem->maImage = rImage; in SetItemImage()
2351 ImplFormatItem( pItem ); in SetItemImage()
2352 Invalidate( pItem->maRect ); in SetItemImage()
2379 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( nPos ); in SetItemColor() local
2380 pItem->meType = VALUESETITEM_COLOR; in SetItemColor()
2381 pItem->maColor = rColor; in SetItemColor()
2385 ImplFormatItem( pItem ); in SetItemColor()
2386 Invalidate( pItem->maRect ); in SetItemColor()
2413 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( nPos ); in SetItemData() local
2414 pItem->mpData = pData; in SetItemData()
2416 if ( pItem->meType == VALUESETITEM_USERDRAW ) in SetItemData()
2420 ImplFormatItem( pItem ); in SetItemData()
2421 Invalidate( pItem->maRect ); in SetItemData()
2450 ValueSetItem* pItem = mpImpl->mpItemList->GetObject( nPos ); in SetItemText() local
2454 ::rtl::OUString sString (pItem->maText); in SetItemText()
2459 pItem->maText = rText; in SetItemText()
2469 ImplDrawItemText( pItem->maText ); in SetItemText()
2476 pItem->GetAccessible( mpImpl->mbIsTransientChildrenDisabled ) ); in SetItemText()