Lines Matching refs:pItem
237 const SfxPoolItem *pItem = (*pArr)->operator[](j); in Store() local
238 if ( pItem && pItem->GetRefCount() ) //! siehe anderes MI-REF in Store()
242 if ( pItem->GetRefCount() == SFX_ITEMS_SPECIAL ) in Store()
243 rStream << (sal_uInt16) pItem->GetKind(); in Store()
246 rStream << (sal_uInt16) pItem->GetRefCount(); in Store()
247 if( pItem->GetRefCount() > SFX_ITEMS_OLD_MAXREF ) in Store()
252 pItem->Store(rStream, nItemVersion); in Store()
256 if ( !pItem->ISA(SfxSetItem) ) in Store()
260 SfxPoolItem *pClone = pItem->Create(rStream, nItemVersion ); in Store()
261 sal_uInt16 nWh = pItem->Which(); in Store()
263 SFX_ASSERT( *pClone == *pItem, nWh, "unequal after store/create" ); in Store()
387 SfxPoolItem *pItem = 0; in readTheItems() local
398 for ( pItem = 0, n = nLastSurrogate+1; n < nSurrogate; ++n ) in readTheItems()
399 pNewArr->push_back( (SfxPoolItem*) pItem ); in readTheItems()
406 pItem = pDefItem->Create(rStream, nVersion); in readTheItems()
407 pNewArr->push_back( (SfxPoolItem*) pItem ); in readTheItems()
411 AddRef(*pItem, 1); in readTheItems()
415 pItem->SetKind( nRef ); in readTheItems()
417 AddRef(*pItem, nRef); in readTheItems()
422 for ( pItem = 0, n = nLastSurrogate+1; n < nItemCount; ++n ) in readTheItems()
423 pNewArr->push_back( (SfxPoolItem*) pItem ); in readTheItems()
702 SfxPoolItem *pItem = in Load() local
705 pItem->SetKind( SFX_ITEMS_POOLDEFAULT ); in Load()
706 *( ppPoolDefaults + GetIndex_Impl(nWhich) ) = pItem; in Load()
883 SfxPoolItem *pItem = 0; in Load1_Impl() local
886 pItem = pDefItem->Create(rStream, nVersion); in Load1_Impl()
890 AddRef(*pItem, 1); in Load1_Impl()
894 pItem->SetKind( nRef ); in Load1_Impl()
896 AddRef(*pItem, nRef); in Load1_Impl()
900 pNewArr->push_back( (SfxPoolItem*) pItem ); in Load1_Impl()
990 SfxPoolItem *pItem = in Load1_Impl() local
993 pItem->SetKind( SFX_ITEMS_POOLDEFAULT ); in Load1_Impl()
994 *( ppPoolDefaults + GetIndex_Impl(nWhich) ) = pItem; in Load1_Impl()
1106 const SfxPoolItem *pItem = 0; in LoadSurrogate() local
1121 pItem = pItemArr && nSurrogat < pItemArr->size() in LoadSurrogate()
1124 if ( !pItem ) in LoadSurrogate()
1133 return &pTarget->Put( *pItem ); in LoadSurrogate()
1137 AddRef( *pItem, 1 ); in LoadSurrogate()
1139 return pItem; in LoadSurrogate()
1141 return pItem; in LoadSurrogate()
1157 const SfxPoolItem* pItem in StoreSurrogate()
1180 if ( pItem ) in StoreSurrogate()
1182 FASTBOOL bRealSurrogate = IsItemFlag(*pItem, SFX_ITEM_POOLABLE); in StoreSurrogate()
1184 ? GetSurrogate( pItem ) in StoreSurrogate()
1195 sal_uInt32 SfxItemPool::GetSurrogate(const SfxPoolItem *pItem) const in GetSurrogate()
1198 DBG_ASSERT( pItem, "no 0-Pointer Surrogate" ); in GetSurrogate()
1199 DBG_ASSERT( !IsInvalidItem(pItem), "no Invalid-Item Surrogate" ); in GetSurrogate()
1200 DBG_ASSERT( !IsPoolDefaultItem(pItem), "no Pool-Default-Item Surrogate" ); in GetSurrogate()
1202 if ( !IsInRange(pItem->Which()) ) in GetSurrogate()
1205 return pSecondary->GetSurrogate( pItem ); in GetSurrogate()
1206 SFX_ASSERT( 0, pItem->Which(), "unknown Which-Id - dont ask me for surrogates" ); in GetSurrogate()
1210 if( IsStaticDefaultItem(pItem) || IsPoolDefaultItem(pItem) ) in GetSurrogate()
1213 SfxPoolItemArray_Impl* pItemArr = *(pImp->ppPoolItems + GetIndex_Impl(pItem->Which())); in GetSurrogate()
1219 if ( p == pItem ) in GetSurrogate()
1222 SFX_ASSERT( 0, pItem->Which(), "Item not in the pool"); in GetSurrogate()
1661 const SfxPoolItem *pItem = 0; in LoadItem() local
1667 pItem = LoadSurrogate( rStream, nWhich, nSlot, pRefPool ); in LoadItem()
1674 if ( bDirect || ( nWhich && !pItem ) ) in LoadItem()
1689 pItem = pNewItem; in LoadItem()
1693 pItem = &Put(*pNewItem); in LoadItem()
1697 pItem = 0; in LoadItem()
1708 return pItem; in LoadItem()