Lines Matching refs:nWhich
55 const SfxPoolItem* SfxItemPool::GetPoolDefaultItem( sal_uInt16 nWhich ) const in GetPoolDefaultItem()
59 if( IsInRange( nWhich ) ) in GetPoolDefaultItem()
60 pRet = *(ppPoolDefaults + GetIndex_Impl( nWhich )); in GetPoolDefaultItem()
62 pRet = pSecondary->GetPoolDefaultItem( nWhich ); in GetPoolDefaultItem()
65 SFX_ASSERT( 0, nWhich, "unknown Which-Id - cannot get pool default" ); in GetPoolDefaultItem()
81 FASTBOOL SfxItemPool::IsItemFlag( sal_uInt16 nWhich, sal_uInt16 nFlag ) const in IsItemFlag() argument
85 if ( pPool->IsInRange(nWhich) ) in IsItemFlag()
86 return pPool->IsItemFlag_Impl( pPool->GetIndex_Impl(nWhich), nFlag); in IsItemFlag()
88 DBG_ASSERT( !IsWhich(nWhich), "unknown which-id" ); in IsItemFlag()
741 const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich ) in Put() argument
748 if ( 0 == nWhich ) in Put()
749 nWhich = rItem.Which(); in Put()
752 sal_Bool bSID = nWhich > SFX_WHICH_MAX; in Put()
753 if ( !bSID && !IsInRange(nWhich) ) in Put()
756 return pSecondary->Put( rItem, nWhich ); in Put()
761 sal_uInt16 nIndex = bSID ? USHRT_MAX : GetIndex_Impl(nWhich); in Put()
765 SFX_ASSERT( USHRT_MAX != nIndex || rItem.Which() != nWhich || in Put()
767 nWhich, "ein nicht Pool-Item ist Default?!" ); in Put()
769 pPoolItem->SetWhich(nWhich); in Put()
774 SFX_ASSERT( rItem.IsA(GetDefaultItem(nWhich).Type()), nWhich, in Put()
841 pNewItem->SetWhich(nWhich); in Put()
843 SFX_ASSERT( rItem.Type() == pNewItem->Type(), nWhich, "unequal types in Put(): no Clone()?" ) in Put()
847 SFX_ASSERT( !IsItemFlag(nWhich, SFX_ITEM_POOLABLE) || in Put()
849 nWhich, "unequal items in Put(): no operator==?" ); in Put()
852 nWhich, "unequal items in Put(): no operator==?" ); in Put()
882 const sal_uInt16 nWhich = rItem.Which(); in Remove() local
883 sal_Bool bSID = nWhich > SFX_WHICH_MAX; in Remove()
884 if ( !bSID && !IsInRange(nWhich) ) in Remove()
895 sal_uInt16 nIndex = bSID ? USHRT_MAX : GetIndex_Impl(nWhich); in Remove()
913 &rItem == *( ppStaticDefaults + GetIndex_Impl(nWhich) ) ) in Remove()
938 if ( 0 == (*ppHtArr)->GetRefCount() && nWhich < 4000 ) in Remove()
950 const SfxPoolItem& SfxItemPool::GetDefaultItem( sal_uInt16 nWhich ) const in GetDefaultItem()
954 if ( !IsInRange(nWhich) ) in GetDefaultItem()
957 return pSecondary->GetDefaultItem( nWhich ); in GetDefaultItem()
958 SFX_ASSERT( 0, nWhich, "unknown which - dont ask me for defaults" ); in GetDefaultItem()
962 sal_uInt16 nPos = GetIndex_Impl(nWhich); in GetDefaultItem()
1013 const SfxPoolItem *SfxItemPool::GetItem2(sal_uInt16 nWhich, sal_uInt32 nOfst) const in GetItem2() argument
1017 if ( !IsInRange(nWhich) ) in GetItem2()
1020 return pSecondary->GetItem2( nWhich, nOfst ); in GetItem2()
1021 SFX_ASSERT( 0, nWhich, "unknown Which-Id - cannot resolve surrogate" ); in GetItem2()
1027 return *(ppStaticDefaults + GetIndex_Impl(nWhich)); in GetItem2()
1029 SfxPoolItemArray_Impl* pItemArr = *(pImp->ppPoolItems + GetIndex_Impl(nWhich)); in GetItem2()
1038 sal_uInt32 SfxItemPool::GetItemCount2(sal_uInt16 nWhich) const in GetItemCount2()
1042 if ( !IsInRange(nWhich) ) in GetItemCount2()
1045 return pSecondary->GetItemCount2( nWhich ); in GetItemCount2()
1046 SFX_ASSERT( 0, nWhich, "unknown Which-Id - cannot resolve surrogate" ); in GetItemCount2()
1050 SfxPoolItemArray_Impl* pItemArr = *(pImp->ppPoolItems + GetIndex_Impl(nWhich)); in GetItemCount2()
1084 sal_uInt16 SfxItemPool::GetSlotId( sal_uInt16 nWhich, sal_Bool bDeep ) const in GetSlotId() argument
1086 if ( !IsWhich(nWhich) ) in GetSlotId()
1087 return nWhich; in GetSlotId()
1089 if ( !IsInRange( nWhich ) ) in GetSlotId()
1092 return pSecondary->GetSlotId(nWhich); in GetSlotId()
1093 SFX_ASSERT( 0, nWhich, "unknown Which-Id - cannot get slot-id" ); in GetSlotId()
1098 sal_uInt16 nSID = pItemInfos[nWhich - nStart]._nSID; in GetSlotId()
1099 return nSID ? nSID : nWhich; in GetSlotId()
1102 return pSlotIds[nWhich - nStart]; in GetSlotId()
1103 return nWhich; in GetSlotId()
1135 sal_uInt16 SfxItemPool::GetTrueSlotId( sal_uInt16 nWhich, sal_Bool bDeep ) const in GetTrueSlotId() argument
1137 if ( !IsWhich(nWhich) ) in GetTrueSlotId()
1140 if ( !IsInRange( nWhich ) ) in GetTrueSlotId()
1143 return pSecondary->GetTrueSlotId(nWhich); in GetTrueSlotId()
1144 SFX_ASSERT( 0, nWhich, "unknown Which-Id - cannot get slot-id" ); in GetTrueSlotId()
1148 return pItemInfos[nWhich - nStart]._nSID; in GetTrueSlotId()
1151 return pSlotIds[nWhich - nStart]; in GetTrueSlotId()