SfxItemSet Class Reference

#include <itemset.hxx>

Inheritance diagram for SfxItemSet:

Inheritance graph
[legend]
Collaboration diagram for SfxItemSet:

Collaboration graph
[legend]

List of all members.

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 SfxItemSetClone (BOOL bItems=TRUE, SfxItemPool *pToPool=0) const
USHORT Count () const
USHORT TotalCount () const
virtual const SfxPoolItemGet (USHORT nWhich, BOOL bSrchInParent=TRUE) const
const SfxPoolItemGetItem (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 SfxPoolItemPut (const SfxPoolItem &, USHORT nWhich)
const SfxPoolItemPut (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)
SfxItemPoolGetPool () const
const USHORTGetRanges () const
void SetRanges (const USHORT *pRanges)
void MergeRange (USHORT nFrom, USHORT nTo)
const SfxItemSetGetParent () 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 SfxItemSetoperator= (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 *)


Detailed Description

Definition at line 75 of file itemset.hxx.


Constructor & Destructor Documentation

SfxItemSet::SfxItemSet ( const SfxItemSet rASet  ) 

SfxItemSet::SfxItemSet ( SfxItemPool rPool,
BOOL  bTotalPoolRanges = FALSE 
)

Definition at line 117 of file itemset.cxx.

References DBG, and DbgCheckItemSet().

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]


Member Function Documentation

void SfxItemSet::InitRanges_Impl ( const USHORT nWhichPairTable  )  [private]

Definition at line 238 of file itemset.cxx.

References _aItems, _pWhichRanges, and nRangesCopyCount.

Referenced by SfxItemSet().

void SfxItemSet::InitRanges_Impl ( va_list  pWhich,
USHORT  n1,
USHORT  n2,
USHORT  n3 
) [private]

Definition at line 199 of file itemset.cxx.

References _aItems, _pWhichRanges, and InitializeRanges_Impl().

void SfxItemSet::InitRanges_Impl ( USHORT  nWh1,
USHORT  nWh2 
) [private]

Definition at line 185 of file itemset.cxx.

References _aItems, and _pWhichRanges.

SfxItemArray SfxItemSet::GetItems_Impl (  )  const [inline]

Definition at line 98 of file itemset.hxx.

References _aItems.

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]

SfxItemSet * SfxItemSet::Clone ( BOOL  bItems = TRUE,
SfxItemPool pToPool = 0 
) const [virtual]

USHORT SfxItemSet::Count (  )  const [inline]

USHORT SfxItemSet::TotalCount (  )  const

const SfxPoolItem & SfxItemSet::Get ( USHORT  nWhich,
BOOL  bSrchInParent = TRUE 
) const [virtual]

const SfxPoolItem * SfxItemSet::GetItem ( USHORT  nWhich,
BOOL  bSrchInParent = TRUE,
TypeId  aItemType = 0 
) const

USHORT SfxItemSet::GetWhichByPos ( USHORT  nPos  )  const

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

void SfxItemSet::DisableItem ( USHORT  nWhich  )  [virtual]

Definition at line 2037 of file itemset.cxx.

References Put().

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().

USHORT SfxItemSet::ClearItem ( USHORT  nWhich = 0  )  [virtual]

void SfxItemSet::ClearInvalidItems ( BOOL  bHardDefault = FALSE  )  [virtual]

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]

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 
)

int SfxItemSet::Set ( const SfxItemSet rSet,
BOOL  bDeep = TRUE 
) [virtual]

void SfxItemSet::Intersect ( const SfxItemSet rSet  )  [virtual]

void SfxItemSet::MergeValues ( const SfxItemSet rSet,
BOOL  bOverwriteDefaults = FALSE 
) [virtual]

void SfxItemSet::Differentiate ( const SfxItemSet rSet  )  [virtual]

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]

const USHORT* SfxItemSet::GetRanges (  )  const [inline]

Definition at line 166 of file itemset.hxx.

References _pWhichRanges.

void SfxItemSet::SetRanges ( const USHORT pNewRanges  ) 

Description

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().

void SfxItemSet::MergeRange ( USHORT  nFrom,
USHORT  nTo 
)

Description

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]

SvStream & SfxItemSet::Store ( SvStream &  rStream,
FASTBOOL  bDirect = FALSE 
) const [virtual]

int SfxItemSet::operator== ( const SfxItemSet rCmp  )  const [virtual]


Friends And Related Function Documentation

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]


Member Data Documentation

const SfxItemSet* SfxItemSet::_pParent [private]


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

Generated on Thu Apr 29 14:17:43 2010 for ooo-build Module svtools (ooo/OOO320_m15) by  doxygen 1.5.6