31 pItemToPut( &pItemPool->
Put(*pPutItem) )
63 "original not in pool" );
68 if ( rMapEntry.pOrigItem == &rOrigItem )
71 if ( rMapEntry.pPoolItem != &rOrigItem )
73 rMapEntry.pPoolItem->AddRef(2);
76 return *rMapEntry.pPoolItem;
81 std::unique_ptr<SfxSetItem> pNewItem(rOrigItem.
Clone());
84 pNewItem->GetItemSet().PutDirect( *
pItemToPut );
86 "wrong item in temporary set" );
93 pNewPoolItem->
AddRef( pNewPoolItem != &rOrigItem ? 2 : 1 );
104 "wrong item in resulting set" );
106 return *pNewPoolItem;
std::vector< SfxItemModifyImpl > m_aCache
SfxItemPoolCache(SfxItemPool *pPool, const SfxPoolItem *pPutItem)
const SfxItemSet * pSetToPut
const SfxPoolItem * pItemToPut
const SfxSetItem & ApplyTo(const SfxSetItem &rSetItem)
Base class for providers of defaults of SfxPoolItems.
const T & Put(std::unique_ptr< T > xItem, sal_uInt16 nWhich=0)
void Remove(const SfxPoolItem &)
SfxItemPool * GetPool() const
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void AddRef(sal_uInt32 n=1) const
const SfxItemSet & GetItemSet() const
virtual SfxSetItem * Clone(SfxItemPool *pPool=nullptr) const override=0
#define DBG_ASSERT(sCon, aError)
bool IsDefaultItem(const SfxPoolItem *pItem)
bool IsPooledItem(const SfxPoolItem *pItem)
const SfxSetItem * pOrigItem