20#ifndef INCLUDED_SVL_SOURCE_INC_POOLIO_HXX
21#define INCLUDED_SVL_SOURCE_INC_POOLIO_HXX
38 return (*lhs) < (*rhs);
67 assert( bInserted &&
"duplicate item?" );
99 std::vector<const SfxPoolItem*> rv;
106 rv.reserve(std::distance(range.first, range.second));
107 for (
auto it = range.first; it != range.second; ++it)
121 if ((*it)->IsSortable())
131 assert(
false &&
"did not find item?");
134 if (*pNeedle < **sortIt)
136 assert(
false &&
"did not find item?");
140 if (*sortIt == pNeedle)
197#define SFX_ITEMPOOL_VER_MAJOR sal_uInt8(2)
198#define SFX_ITEMPOOL_VER_MINOR sal_uInt8(0)
200#define SFX_ITEMPOOL_TAG_STARTPOOL_4 sal_uInt16(0x1111)
201#define SFX_ITEMPOOL_TAG_STARTPOOL_5 sal_uInt16(0xBBBB)
202#define SFX_ITEMPOOL_TAG_TRICK4OLD sal_uInt16(0xFFFF)
204#define SFX_ITEMPOOL_REC sal_uInt8(0x01)
205#define SFX_ITEMPOOL_REC_HEADER sal_uInt8(0x10)
206#define SFX_ITEMPOOL_REC_VERSIONMAP sal_uInt16(0x0020)
207#define SFX_ITEMPOOL_REC_WHICHIDS sal_uInt16(0x0030)
208#define SFX_ITEMPOOL_REC_ITEMS sal_uInt16(0x0040)
209#define SFX_ITEMPOOL_REC_DEFAULTS sal_uInt16(0x0050)
Base class for providers of defaults of SfxPoolItems.
std::unique_ptr< SfxItemPool_Impl > pImpl
virtual bool IsSortable() const
const_iterator begin() const
std::vector< Value >::const_iterator const_iterator
const_iterator find(const Value &x) const
size_type erase(const Value &x)
const_iterator end() const
const Value & front() const
std::pair< const_iterator, bool > insert(Value &&x)
#define DBG_ASSERT(sCon, aError)
const sal_uInt32 SFX_ITEMS_DEFAULT
static bool CompareSortablePoolItems(SfxPoolItem const *lhs, SfxPoolItem const *rhs)
friend class PoolItemTest
std::vector< SfxPoolItemArray_Impl > maPoolItemArrays
static SfxItemPool_Impl * GetImpl(SfxItemPool const *pPool)
rtl::Reference< SfxItemPool > mpSecondary
SfxItemPool_Impl(SfxItemPool *pMaster, OUString _aName, sal_uInt16 nStart, sal_uInt16 nEnd)
WhichRangesContainer mpPoolRanges
std::vector< SfxPoolItem * > * mpStaticDefaults
std::vector< SfxPoolItem * > maPoolDefaults
This array contains a set of SfxPoolItems, if those items are poolable then each item has a unique se...
std::vector< SfxPoolItem * > maSortablePoolItems
o3tl::sorted_vector< SfxPoolItem * > maPoolItemSet
o3tl::sorted_vector< SfxPoolItem * >::const_iterator find(SfxPoolItem *pItem) const
void insert(SfxPoolItem *pItem)
o3tl::sorted_vector< SfxPoolItem * >::const_iterator begin() const
const SfxPoolItem * findByLessThan(const SfxPoolItem *pNeedle) const
o3tl::sorted_vector< SfxPoolItem * >::const_iterator end() const
std::vector< const SfxPoolItem * > findSurrogateRange(const SfxPoolItem *pNeedle) const
void clear()
clear array of PoolItem variants after all PoolItems are deleted or all ref counts are decreased
void erase(o3tl::sorted_vector< SfxPoolItem * >::const_iterator it)
Most of the time, the which ranges we point at are a compile-time literal.