#include <itemset.hxx>


Public Member Functions | |
| SfxItemArray | GetItems_Impl () const |
| SfxItemSet (const SfxItemSet &) | |
| SfxItemSet (SfxItemPool &, BOOL bTotalPoolRanges=FALSE) | |
| SfxItemSet (SfxItemPool &, USHORT nWhich1, USHORT nWhich2) | |
| SfxItemSet (SfxItemPool &, USHORT_ARG nWh1, USHORT_ARG nWh2, USHORT_ARG nNull,...) | |
| SfxItemSet (SfxItemPool &, const USHORT *nWhichPairTable) | |
| virtual | ~SfxItemSet () |
| virtual SfxItemSet * | Clone (BOOL bItems=TRUE, SfxItemPool *pToPool=0) const |
| USHORT | Count () const |
| USHORT | TotalCount () const |
| virtual const SfxPoolItem & | Get (USHORT nWhich, BOOL bSrchInParent=TRUE) const |
| const SfxPoolItem * | GetItem (USHORT nWhich, BOOL bSrchInParent=TRUE, TypeId aItemType=0) const |
| USHORT | GetWhichByPos (USHORT nPos) const |
| SfxItemState | GetItemState (USHORT nWhich, BOOL bSrchInParent=TRUE, const SfxPoolItem **ppItem=0) const |
| virtual void | DisableItem (USHORT nWhich) |
| virtual void | InvalidateItem (USHORT nWhich) |
| virtual USHORT | ClearItem (USHORT nWhich=0) |
| virtual void | ClearInvalidItems (BOOL bHardDefault=FALSE) |
| void | InvalidateAllItems () |
| HACK (via nWhich=0) inline void SetParent(const SfxItemSet *pNew) | |
| virtual const SfxPoolItem * | Put (const SfxPoolItem &, USHORT nWhich) |
| const SfxPoolItem * | Put (const SfxPoolItem &rItem) |
| virtual int | Put (const SfxItemSet &, BOOL bInvalidAsDefault=TRUE) |
| void | PutExtended (const SfxItemSet &, SfxItemState eDontCareAs=SFX_ITEM_UNKNOWN, SfxItemState eDefaultAs=SFX_ITEM_UNKNOWN) |
| virtual int | Set (const SfxItemSet &, BOOL bDeep=TRUE) |
| virtual void | Intersect (const SfxItemSet &rSet) |
| virtual void | MergeValues (const SfxItemSet &rSet, BOOL bOverwriteDefaults=FALSE) |
| virtual void | Differentiate (const SfxItemSet &rSet) |
| virtual void | MergeValue (const SfxPoolItem &rItem, BOOL bOverwriteDefaults=FALSE) |
| SfxItemPool * | GetPool () const |
| const USHORT * | GetRanges () const |
| void | SetRanges (const USHORT *pRanges) |
| void | MergeRange (USHORT nFrom, USHORT nTo) |
| const SfxItemSet * | GetParent () const |
| virtual SvStream & | Load (SvStream &, FASTBOOL bDirect=FALSE, const SfxItemPool *pRefPool=0) |
| virtual SvStream & | Store (SvStream &, FASTBOOL bDirect=FALSE) const |
| virtual int | operator== (const SfxItemSet &) const |
Protected Member Functions | |
| virtual void | Changed (const SfxPoolItem &rOld, const SfxPoolItem &rNew) |
| int | PutDirect (const SfxPoolItem &rItem) |
Private Member Functions | |
| SVL_DLLPRIVATE void | InitRanges_Impl (const USHORT *nWhichPairTable) |
| SVL_DLLPRIVATE void | InitRanges_Impl (va_list pWhich, USHORT n1, USHORT n2, USHORT n3) |
| SVL_DLLPRIVATE void | InitRanges_Impl (USHORT nWh1, USHORT nWh2) |
| const SfxItemSet & | operator= (const SfxItemSet &) |
Private Attributes | |
| SfxItemPool * | _pPool |
| const SfxItemSet * | _pParent |
| SfxItemArray | _aItems |
| USHORT * | _pWhichRanges |
| USHORT | _nCount |
Friends | |
| class | SfxItemIter |
| class | SfxItemPoolCache |
| class | SfxAllItemSet |
| const char * | DbgCheckItemSet (const void *) |
Definition at line 75 of file itemset.hxx.
| SfxItemSet::SfxItemSet | ( | const SfxItemSet & | rASet | ) |
Definition at line 279 of file itemset.cxx.
References _aItems, _pParent, _pPool, _pWhichRanges, DBG, DbgCheckItemSet, SfxItemPool::GetMasterPool(), IsInvalidItem(), SfxItemPool::IsItemFlag(), IsStaticDefaultItem(), nRangesCopyCount, SfxItemPool::Put(), and SFX_ITEM_POOLABLE.
Referenced by Clone().
| SfxItemSet::SfxItemSet | ( | SfxItemPool & | rPool, | |
| BOOL | bTotalPoolRanges = FALSE | |||
| ) |
| SfxItemSet::SfxItemSet | ( | SfxItemPool & | rPool, | |
| USHORT | nWhich1, | |||
| USHORT | nWhich2 | |||
| ) |
Definition at line 170 of file itemset.cxx.
References _pPool, DBG, DbgCheckItemSet, SfxItemPool::GetMasterPool(), and InitRanges_Impl().
| SfxItemSet::SfxItemSet | ( | SfxItemPool & | rPool, | |
| USHORT_ARG | nWh1, | |||
| USHORT_ARG | nWh2, | |||
| USHORT_ARG | nNull, | |||
| ... | ||||
| ) |
Definition at line 210 of file itemset.cxx.
References _pPool, DBG, DbgCheckItemSet, SfxItemPool::GetMasterPool(), and InitRanges_Impl().
| SfxItemSet::SfxItemSet | ( | SfxItemPool & | rPool, | |
| const USHORT * | nWhichPairTable | |||
| ) |
Definition at line 262 of file itemset.cxx.
References _pPool, DBG, SfxItemPool::GetMasterPool(), and InitRanges_Impl().
| SfxItemSet::~SfxItemSet | ( | ) | [virtual] |
Definition at line 329 of file itemset.cxx.
References _aItems, _pParent, _pPool, _pWhichRanges, Count(), DBG, DbgCheckItemSet, SfxItemPool::GetFrozenIdRanges(), IsDefaultItem(), IsInvalidItem(), SfxItemPool::Remove(), and TotalCount().
| void SfxItemSet::InitRanges_Impl | ( | const USHORT * | nWhichPairTable | ) | [private] |
Definition at line 238 of file itemset.cxx.
References _aItems, _pWhichRanges, and nRangesCopyCount.
Referenced by SfxItemSet().
Definition at line 199 of file itemset.cxx.
References _aItems, _pWhichRanges, and InitializeRanges_Impl().
| SfxItemArray SfxItemSet::GetItems_Impl | ( | ) | const [inline] |
| const SfxItemSet& SfxItemSet::operator= | ( | const SfxItemSet & | ) | [private] |
| void SfxItemSet::Changed | ( | const SfxPoolItem & | rOld, | |
| const SfxPoolItem & | rNew | |||
| ) | [protected, virtual] |
Definition at line 1049 of file itemset.cxx.
References DbgCheckItemSet.
Referenced by ClearItem(), Differentiate(), Intersect(), SfxAllItemSet::Put(), and Put().
| int SfxItemSet::PutDirect | ( | const SfxPoolItem & | rItem | ) | [protected] |
Definition at line 1742 of file itemset.cxx.
References _aItems, _nCount, _pPool, _pWhichRanges, SfxPoolItem::AddRef(), DbgCheckItemSet, FALSE, SfxItemPool::GetSurrogate(), IsPoolDefaultItem(), IsStaticDefaultItem(), SfxItemPool::Put(), SfxItemPool::Remove(), TRUE, and SfxPoolItem::Which().
Referenced by SfxItemPoolCache::ApplyTo().
| SfxItemSet * SfxItemSet::Clone | ( | BOOL | bItems = TRUE, |
|
| SfxItemPool * | pToPool = 0 | |||
| ) | const [virtual] |
Reimplemented in SfxAllItemSet.
Definition at line 1714 of file itemset.cxx.
References _pPool, _pWhichRanges, DbgCheckItemSet, FALSE, SfxWhichIter::FirstWhich(), GetItemState(), SfxWhichIter::NextWhich(), Put(), SFX_ITEM_SET, SfxItemSet(), and SfxPoolItem::Which().
| USHORT SfxItemSet::Count | ( | ) | const [inline] |
Definition at line 125 of file itemset.hxx.
References _nCount.
Referenced by ClearItem(), Differentiate(), Get(), Intersect(), operator==(), Put(), SfxItemIter::SfxItemIter(), and ~SfxItemSet().
| USHORT SfxItemSet::TotalCount | ( | ) | const |
Definition at line 1056 of file itemset.cxx.
References _pWhichRanges.
Referenced by InvalidateAllItems(), operator==(), SfxAllItemSet::Put(), SetRanges(), SfxItemIter::SfxItemIter(), and ~SfxItemSet().
| const SfxPoolItem & SfxItemSet::Get | ( | USHORT | nWhich, | |
| BOOL | bSrchInParent = TRUE | |||
| ) | const [virtual] |
((SfxAllItemSet *)this)->aDefault.SetWhich(nWhich); return aDefault;
Definition at line 990 of file itemset.cxx.
References _aItems, _pParent, _pPool, _pWhichRanges, Count(), DbgCheckItemSet, SfxItemPool::GetDefaultItem(), SFX_ASSERT, and SfxPoolItem::Which().
Referenced by SfxItemPoolCache::ApplyTo(), ClearItem(), Differentiate(), Intersect(), SfxAllItemSet::Put(), and Put().
| const SfxPoolItem * SfxItemSet::GetItem | ( | USHORT | nWhich, | |
| BOOL | bSrchInParent = TRUE, |
|||
| TypeId | aItemType = 0 | |||
| ) | const |
Definition at line 945 of file itemset.cxx.
References _pPool, SfxItemPool::GetDefaultItem(), GetItemState(), GetPool(), SfxItemPool::GetWhich(), SFX_ITEM_AVAILABLE, and SFX_WHICH_MAX.
Definition at line 1482 of file itemset.cxx.
References _pWhichRanges, DbgCheckItemSet, and FALSE.
Referenced by Differentiate(), and Intersect().
| SfxItemState SfxItemSet::GetItemState | ( | USHORT | nWhich, | |
| BOOL | bSrchInParent = TRUE, |
|||
| const SfxPoolItem ** | ppItem = 0 | |||
| ) | const |
Definition at line 509 of file itemset.cxx.
References _aItems, _pParent, _pWhichRanges, DbgCheckItemSet, SFX_ITEM_DEFAULT, SFX_ITEM_DISABLED, SFX_ITEM_DONTCARE, SFX_ITEM_SET, and SFX_ITEM_UNKNOWN.
Referenced by Clone(), Differentiate(), GetItem(), Intersect(), MergeRange(), MergeValues(), operator==(), Set(), and SetRanges().
| void SfxItemSet::DisableItem | ( | USHORT | nWhich | ) | [virtual] |
| void SfxItemSet::InvalidateItem | ( | USHORT | nWhich | ) | [virtual] |
Definition at line 1448 of file itemset.cxx.
References _aItems, _nCount, _pPool, _pWhichRanges, DbgCheckItemSet, and SfxItemPool::Remove().
Referenced by MergeValues(), Put(), and PutExtended().
Definition at line 370 of file itemset.cxx.
References _aItems, _nCount, _pParent, _pPool, _pWhichRanges, Changed(), Count(), DbgCheckItemSet, Get(), SfxItemPool::GetDefaultItem(), IsInvalidItem(), SfxPoolItem::nWhich, SfxItemPool::Remove(), SFX_WHICH_MAX, TRUE, and SfxPoolItem::Which().
Referenced by Differentiate(), Intersect(), SfxStyleSheetBasePool::Load(), SfxStyleSheetBasePool::Load1_Impl(), Put(), PutExtended(), and Set().
| void SfxItemSet::ClearInvalidItems | ( | BOOL | bHardDefault = FALSE |
) | [virtual] |
Definition at line 470 of file itemset.cxx.
References _aItems, _nCount, _pPool, _pWhichRanges, DbgCheckItemSet, SfxItemPool::GetDefaultItem(), IsInvalidItem(), and SfxItemPool::Put().
| void SfxItemSet::InvalidateAllItems | ( | ) |
Definition at line 499 of file itemset.cxx.
References _aItems, _nCount, DbgCheckItemSet, and TotalCount().
| SfxItemSet::HACK | ( | via | nWhich = 0 |
) | const |
| const SfxPoolItem * SfxItemSet::Put | ( | const SfxPoolItem & | rItem, | |
| USHORT | nWhich | |||
| ) | [virtual] |
nur wegen Outliner-Bug
Reimplemented in SfxAllItemSet.
Definition at line 566 of file itemset.cxx.
References _aItems, _nCount, _pParent, _pPool, _pWhichRanges, Changed(), SfxPoolItem::Clone(), DbgCheckItemSet, Get(), SfxItemPool::GetDefaultItem(), IsInvalidItem(), SfxItemPool::IsItemFlag(), SfxItemPool::Put(), SfxItemPool::Remove(), SFX_ASSERT, SFX_ITEM_POOLABLE, SFX_WHICH_MAX, TRUE, and SfxPoolItem::Which().
Referenced by SfxItemPoolCache::ApplyTo(), Clone(), DisableItem(), SfxAllItemSet::Put(), Put(), PutExtended(), SfxStyleSheetBasePool::Replace(), and Set().
| const SfxPoolItem* SfxItemSet::Put | ( | const SfxPoolItem & | rItem | ) | [inline] |
Reimplemented in SfxAllItemSet.
Definition at line 150 of file itemset.hxx.
References SfxAllItemSet::Put().
| int SfxItemSet::Put | ( | const SfxItemSet & | rSet, | |
| BOOL | bInvalidAsDefault = TRUE | |||
| ) | [virtual] |
Reimplemented in SfxAllItemSet.
Definition at line 646 of file itemset.cxx.
References _aItems, _pWhichRanges, BOOL, ClearItem(), Count(), DbgCheckItemSet, FALSE, InvalidateItem(), IsInvalidItem(), and Put().
| void SfxItemSet::PutExtended | ( | const SfxItemSet & | rSet, | |
| SfxItemState | eDontCareAs = SFX_ITEM_UNKNOWN, |
|||
| SfxItemState | eDefaultAs = SFX_ITEM_UNKNOWN | |||
| ) |
Definition at line 680 of file itemset.cxx.
References _aItems, _pWhichRanges, ClearItem(), DbgCheckItemSet, SfxItemPool::GetDefaultItem(), GetPool(), InvalidateItem(), IsInvalidItem(), Put(), SFX_ITEM_DEFAULT, SFX_ITEM_DONTCARE, and SFX_ITEM_SET.
| int SfxItemSet::Set | ( | const SfxItemSet & | rSet, | |
| BOOL | bDeep = TRUE | |||
| ) | [virtual] |
Definition at line 879 of file itemset.cxx.
References _nCount, ClearItem(), DbgCheckItemSet, FALSE, SfxWhichIter::FirstWhich(), GetItemState(), SfxWhichIter::NextWhich(), Put(), SFX_ITEM_SET, TRUE, and SfxPoolItem::Which().
Referenced by SfxAllItemSet::Clone().
| void SfxItemSet::Intersect | ( | const SfxItemSet & | rSet | ) | [virtual] |
Definition at line 1072 of file itemset.cxx.
References _aItems, _nCount, _pParent, _pPool, _pWhichRanges, BOOL, Changed(), ClearItem(), Count(), DbgCheckItemSet, FALSE, Get(), SfxItemIter::GetCurItem(), SfxItemIter::GetCurPos(), SfxItemPool::GetDefaultItem(), GetItemState(), GetWhichByPos(), SfxItemIter::IsAtEnd(), IsInvalidItem(), SfxItemIter::NextItem(), SfxItemPool::Remove(), SFX_WHICH_MAX, TRUE, and SfxPoolItem::Which().
Referenced by SfxStyleSheetBasePool::Replace().
| void SfxItemSet::MergeValues | ( | const SfxItemSet & | rSet, | |
| BOOL | bOverwriteDefaults = FALSE | |||
| ) | [virtual] |
Definition at line 1368 of file itemset.cxx.
References _aItems, _nCount, _pPool, _pWhichRanges, BOOL, DbgCheckItemSet, FALSE, SfxItemPool::GetDefaultItem(), GetItemState(), GetPool(), InvalidateItem(), IsInvalidItem(), MergeItem_Impl(), MergeValue(), SfxWhichIter::NextWhich(), and TRUE.
| void SfxItemSet::Differentiate | ( | const SfxItemSet & | rSet | ) | [virtual] |
Definition at line 1151 of file itemset.cxx.
References _aItems, _nCount, _pParent, _pPool, _pWhichRanges, BOOL, Changed(), ClearItem(), Count(), DbgCheckItemSet, FALSE, Get(), SfxItemIter::GetCurItem(), SfxItemIter::GetCurPos(), SfxItemPool::GetDefaultItem(), GetItemState(), GetWhichByPos(), SfxItemIter::IsAtEnd(), IsInvalidItem(), SfxItemIter::NextItem(), SfxItemPool::Remove(), SFX_ITEM_SET, SFX_WHICH_MAX, TRUE, and SfxPoolItem::Which().
| void SfxItemSet::MergeValue | ( | const SfxPoolItem & | rItem, | |
| BOOL | bOverwriteDefaults = FALSE | |||
| ) | [virtual] |
Definition at line 1426 of file itemset.cxx.
References _aItems, _nCount, _pPool, _pWhichRanges, DbgCheckItemSet, MergeItem_Impl(), and SfxPoolItem::Which().
Referenced by MergeValues().
| SfxItemPool* SfxItemSet::GetPool | ( | ) | const [inline] |
Definition at line 165 of file itemset.hxx.
References _pPool.
Referenced by SfxItemPoolCache::ApplyTo(), DbgCheckItemSet(), GetItem(), StylePoolImpl::insertItemSet(), MergeValues(), PutExtended(), and SetRanges().
| const USHORT* SfxItemSet::GetRanges | ( | ) | const [inline] |
| void SfxItemSet::SetRanges | ( | const USHORT * | pNewRanges | ) |
Modifies the ranges of settable items. Keeps state of items which are new ranges too.
Definition at line 786 of file itemset.cxx.
References _aItems, _nCount, _pPool, _pWhichRanges, Capacity_Impl(), Count_Impl(), FALSE, SfxItemPool::GetFrozenIdRanges(), GetItemState(), GetPool(), IsInvalidItem(), SfxItemPool::Remove(), SFX_ITEM_DISABLED, SFX_ITEM_DONTCARE, SFX_ITEM_SET, TotalCount(), and SfxPoolItem::Which().
Referenced by MergeRange().
Expands the ranges of settable items by 'nFrom' to 'nTo'. Keeps state of items which are new ranges too.
Definition at line 766 of file itemset.cxx.
References _pWhichRanges, FALSE, GetItemState(), SetRanges(), and SFX_ITEM_AVAILABLE.
| const SfxItemSet* SfxItemSet::GetParent | ( | ) | const [inline] |
Definition at line 169 of file itemset.hxx.
References _pParent.
Referenced by StylePoolImpl::insertItemSet().
| SvStream & SfxItemSet::Load | ( | SvStream & | rStream, | |
| FASTBOOL | bDirect = FALSE, |
|||
| const SfxItemPool * | pRefPool = 0 | |||
| ) | [virtual] |
Definition at line 1568 of file itemset.cxx.
References _aItems, _nCount, _pPool, _pWhichRanges, DbgCheckItemSet, SfxItemPool::GetMasterPool(), SfxItemPool::LoadItem(), SFX_ASSERT, and SfxPoolItem::Which().
Referenced by SfxStyleSheetBasePool::Load(), and SfxStyleSheetBasePool::Load1_Impl().
| SvStream & SfxItemSet::Store | ( | SvStream & | rStream, | |
| FASTBOOL | bDirect = FALSE | |||
| ) | const [virtual] |
Definition at line 1502 of file itemset.cxx.
References _nCount, _pPool, DbgCheckItemSet, SfxItemIter::FirstItem(), SfxItemPool::GetMasterPool(), IsInvalidItem(), SfxItemIter::NextItem(), and SfxItemPool::StoreItem().
Referenced by SfxSetItem::Store().
| int SfxItemSet::operator== | ( | const SfxItemSet & | rCmp | ) | const [virtual] |
Definition at line 1644 of file itemset.cxx.
References _aItems, _pParent, _pPool, _pWhichRanges, Count(), DbgCheckItemSet, FALSE, SfxWhichIter::FirstWhich(), GetItemState(), IsInvalidItem(), SfxItemPool::IsItemFlag(), SfxWhichIter::NextWhich(), SFX_ITEM_POOLABLE, TotalCount(), and TRUE.
friend class SfxItemIter [friend] |
Definition at line 77 of file itemset.hxx.
friend class SfxItemPoolCache [friend] |
Definition at line 88 of file itemset.hxx.
friend class SfxAllItemSet [friend] |
Definition at line 89 of file itemset.hxx.
| const char* DbgCheckItemSet | ( | const void * | pVoid | ) | [friend] |
Definition at line 86 of file itemset.cxx.
Referenced by Changed(), ClearInvalidItems(), ClearItem(), SfxAllItemSet::Clone(), Clone(), Differentiate(), Get(), GetItemState(), GetWhichByPos(), Intersect(), InvalidateAllItems(), InvalidateItem(), Load(), MergeValue(), MergeValues(), operator==(), Put(), PutDirect(), PutExtended(), Set(), SfxItemSet(), Store(), and ~SfxItemSet().
SfxItemPool* SfxItemSet::_pPool [private] |
Definition at line 79 of file itemset.hxx.
Referenced by ClearInvalidItems(), ClearItem(), SfxAllItemSet::Clone(), Clone(), Differentiate(), Get(), GetItem(), GetPool(), Intersect(), InvalidateItem(), Load(), MergeValue(), MergeValues(), operator==(), SfxAllItemSet::Put(), Put(), PutDirect(), SetRanges(), SfxItemSet(), Store(), and ~SfxItemSet().
const SfxItemSet* SfxItemSet::_pParent [private] |
Definition at line 80 of file itemset.hxx.
Referenced by ClearItem(), Differentiate(), Get(), GetItemState(), GetParent(), Intersect(), operator==(), SfxAllItemSet::Put(), Put(), SfxItemSet(), and ~SfxItemSet().
SfxItemArray SfxItemSet::_aItems [private] |
Definition at line 81 of file itemset.hxx.
Referenced by ClearInvalidItems(), ClearItem(), DbgCheckItemSet(), Differentiate(), Get(), GetItems_Impl(), GetItemState(), InitRanges_Impl(), Intersect(), InvalidateAllItems(), InvalidateItem(), Load(), MergeValue(), MergeValues(), SfxItemIter::NextItem(), operator==(), SfxItemIter::PrevItem(), SfxAllItemSet::Put(), Put(), PutDirect(), PutExtended(), SetRanges(), SfxAllItemSet::SfxAllItemSet(), SfxItemIter::SfxItemIter(), SfxItemSet(), and ~SfxItemSet().
USHORT* SfxItemSet::_pWhichRanges [private] |
Definition at line 82 of file itemset.hxx.
Referenced by ClearInvalidItems(), ClearItem(), Clone(), Differentiate(), Get(), GetItemState(), GetRanges(), GetWhichByPos(), InitRanges_Impl(), Intersect(), InvalidateItem(), Load(), MergeRange(), MergeValue(), MergeValues(), operator==(), SfxAllItemSet::Put(), Put(), PutDirect(), PutExtended(), SetRanges(), SfxAllItemSet::SfxAllItemSet(), SfxItemSet(), TotalCount(), and ~SfxItemSet().
USHORT SfxItemSet::_nCount [private] |
Definition at line 83 of file itemset.hxx.
Referenced by ClearInvalidItems(), ClearItem(), Count(), DbgCheckItemSet(), Differentiate(), Intersect(), InvalidateAllItems(), InvalidateItem(), Load(), MergeValue(), MergeValues(), SfxAllItemSet::Put(), Put(), PutDirect(), Set(), SetRanges(), SfxItemIter::SfxItemIter(), and Store().
1.5.6