LibreOffice Module svl (master) 1
|
Iterates over the which ids and the pool items arrays together (which are stored in parallel arrays). More...
#include <whiter.hxx>
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 SfxItemSet & | m_rItemSet |
const WhichPair * | m_pCurrentWhichPair |
sal_uInt16 | m_nOffsetFromStartOfCurrentWhichPair |
sal_uInt16 | m_nItemsOffset |
Offset into m_ppItems array in SfxItemSet. More... | |
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.
SfxWhichIter::SfxWhichIter | ( | const SfxItemSet & | rSet | ) |
Definition at line 23 of file whiter.cxx.
void SfxWhichIter::ClearItem | ( | ) |
Definition at line 73 of file whiter.cxx.
References m_nItemsOffset, m_nOffsetFromStartOfCurrentWhichPair, m_pCurrentWhichPair, and m_rItemSet.
Referenced by SfxItemSet::Differentiate(), and SfxItemSet::Intersect().
sal_uInt16 SfxWhichIter::FirstWhich | ( | ) |
Definition at line 58 of file whiter.cxx.
References WhichRangesContainer::begin(), m_nItemsOffset, m_nOffsetFromStartOfCurrentWhichPair, m_pCurrentWhichPair, SfxItemSet::m_pWhichRanges, and m_rItemSet.
Referenced by SfxItemSet::Clone(), SfxItemSet::CloneAsValue(), SfxItemSet::Differentiate(), SfxItemSet::Equals(), SfxItemSet::Intersect(), and SfxItemSet::Set().
sal_uInt16 SfxWhichIter::GetCurWhich | ( | ) | const |
Definition at line 31 of file whiter.cxx.
References WhichRangesContainer::begin(), m_nOffsetFromStartOfCurrentWhichPair, m_pCurrentWhichPair, SfxItemSet::m_pWhichRanges, m_rItemSet, and WhichRangesContainer::size().
SfxItemState SfxWhichIter::GetItemState | ( | bool | bSrchInParent = true , |
const SfxPoolItem ** | ppItem = nullptr |
||
) | const |
Definition at line 66 of file whiter.cxx.
References SfxItemSet::GetItemStateImpl(), m_nItemsOffset, m_nOffsetFromStartOfCurrentWhichPair, m_pCurrentWhichPair, and m_rItemSet.
Referenced by SfxItemSet::MergeValues(), and SfxItemSet::Set().
sal_uInt16 SfxWhichIter::NextWhich | ( | ) |
Definition at line 39 of file whiter.cxx.
References WhichRangesContainer::begin(), m_nItemsOffset, m_nOffsetFromStartOfCurrentWhichPair, m_pCurrentWhichPair, SfxItemSet::m_pWhichRanges, m_rItemSet, and WhichRangesContainer::size().
Referenced by SfxItemSet::Clone(), SfxItemSet::CloneAsValue(), SfxItemSet::Differentiate(), SfxItemSet::Equals(), SfxItemSet::Intersect(), SfxItemSet::MergeValues(), and SfxItemSet::Set().
|
private |
Offset into m_ppItems array in SfxItemSet.
Definition at line 39 of file whiter.hxx.
Referenced by ClearItem(), FirstWhich(), GetItemState(), and NextWhich().
|
private |
Definition at line 37 of file whiter.hxx.
Referenced by ClearItem(), FirstWhich(), GetCurWhich(), GetItemState(), and NextWhich().
|
private |
Definition at line 36 of file whiter.hxx.
Referenced by ClearItem(), FirstWhich(), GetCurWhich(), GetItemState(), and NextWhich().
|
private |
Definition at line 35 of file whiter.hxx.
Referenced by ClearItem(), FirstWhich(), GetCurWhich(), GetItemState(), and NextWhich().