LibreOffice Module svl (master) 1
Public Member Functions | Private Attributes | List of all members
SfxWhichIter Class Reference

Iterates over the which ids and the pool items arrays together (which are stored in parallel arrays). More...

#include <whiter.hxx>

Collaboration diagram for SfxWhichIter:
[legend]

Public Member Functions

 SfxWhichIter (const SfxItemSet &rSet)
 
sal_uInt16 GetCurWhich () const
 
sal_uInt16 NextWhich ()
 
sal_uInt16 FirstWhich ()
 
SfxItemState GetItemState (bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
 
void ClearItem ()
 

Private Attributes

const SfxItemSetm_rItemSet
 
const WhichPairm_pCurrentWhichPair
 
sal_uInt16 m_nOffsetFromStartOfCurrentWhichPair
 
sal_uInt16 m_nItemsOffset
 Offset into m_ppItems array in SfxItemSet. More...
 

Detailed Description

Iterates over the which ids and the pool items arrays together (which are stored in parallel arrays).

Primarily so that we can call GetItemSet on the SfxItemSet and pass in a hint, which avoids searching the array the SfxItemSet, which speeds up GetItemState greatly.

Definition at line 33 of file whiter.hxx.

Constructor & Destructor Documentation

◆ SfxWhichIter()

SfxWhichIter::SfxWhichIter ( const SfxItemSet rSet)

Definition at line 23 of file whiter.cxx.

References begin, and rSet.

Member Function Documentation

◆ ClearItem()

void SfxWhichIter::ClearItem ( )

◆ FirstWhich()

sal_uInt16 SfxWhichIter::FirstWhich ( )

◆ GetCurWhich()

sal_uInt16 SfxWhichIter::GetCurWhich ( ) const

◆ GetItemState()

SfxItemState SfxWhichIter::GetItemState ( bool  bSrchInParent = true,
const SfxPoolItem **  ppItem = nullptr 
) const

◆ NextWhich()

sal_uInt16 SfxWhichIter::NextWhich ( )

Member Data Documentation

◆ m_nItemsOffset

sal_uInt16 SfxWhichIter::m_nItemsOffset
private

Offset into m_ppItems array in SfxItemSet.

Definition at line 39 of file whiter.hxx.

Referenced by ClearItem(), FirstWhich(), GetItemState(), and NextWhich().

◆ m_nOffsetFromStartOfCurrentWhichPair

sal_uInt16 SfxWhichIter::m_nOffsetFromStartOfCurrentWhichPair
private

Definition at line 37 of file whiter.hxx.

Referenced by ClearItem(), FirstWhich(), GetCurWhich(), GetItemState(), and NextWhich().

◆ m_pCurrentWhichPair

const WhichPair* SfxWhichIter::m_pCurrentWhichPair
private

Definition at line 36 of file whiter.hxx.

Referenced by ClearItem(), FirstWhich(), GetCurWhich(), GetItemState(), and NextWhich().

◆ m_rItemSet

const SfxItemSet& SfxWhichIter::m_rItemSet
private

Definition at line 35 of file whiter.hxx.

Referenced by ClearItem(), FirstWhich(), GetCurWhich(), GetItemState(), and NextWhich().


The documentation for this class was generated from the following files: