Kaydet (Commit) 4b3a535a authored tarafından Michael Stahl's avatar Michael Stahl

svl: prefix members of SfxItemSet

Change-Id: I801aaa8ad9a4ff08dedd2f92b09d98c870c725b8
üst e3efae3e
...@@ -39,12 +39,12 @@ public: ...@@ -39,12 +39,12 @@ public:
// falls es diese gibt, returne sie, sonst 0 // falls es diese gibt, returne sie, sonst 0
const SfxPoolItem* FirstItem() const SfxPoolItem* FirstItem()
{ _nAkt = _nStt; { _nAkt = _nStt;
return _rSet._nCount ? *(_rSet._aItems+_nAkt) : 0; } return _rSet.m_nCount ? *(_rSet.m_pItems+_nAkt) : nullptr; }
const SfxPoolItem* LastItem() const SfxPoolItem* LastItem()
{ _nAkt = _nEnd; { _nAkt = _nEnd;
return _rSet._nCount ? *(_rSet._aItems+_nAkt) : 0; } return _rSet.m_nCount ? *(_rSet.m_pItems+_nAkt) : nullptr; }
const SfxPoolItem* GetCurItem() const SfxPoolItem* GetCurItem()
{ return _rSet._nCount ? *(_rSet._aItems+_nAkt) : 0; } { return _rSet.m_nCount ? *(_rSet.m_pItems+_nAkt) : nullptr; }
const SfxPoolItem* NextItem(); const SfxPoolItem* NextItem();
bool IsAtStart() const { return _nAkt == _nStt; } bool IsAtStart() const { return _nAkt == _nStt; }
......
...@@ -41,11 +41,11 @@ class SVL_DLLPUBLIC SfxItemSet ...@@ -41,11 +41,11 @@ class SVL_DLLPUBLIC SfxItemSet
{ {
friend class SfxItemIter; friend class SfxItemIter;
SfxItemPool* _pPool; // pool, which is used SfxItemPool* m_pPool; ///< pool that stores the items
const SfxItemSet* _pParent; // derivation const SfxItemSet* m_pParent; ///< derivation
SfxItemArray _aItems; // field of items SfxItemArray m_pItems; ///< array of items
sal_uInt16* _pWhichRanges; // array of Which Ranges sal_uInt16* m_pWhichRanges; ///< array of Which Ranges
sal_uInt16 _nCount; // number of items sal_uInt16 m_nCount; ///< number of items
friend class SfxItemPoolCache; friend class SfxItemPoolCache;
friend class SfxAllItemSet; friend class SfxAllItemSet;
...@@ -57,7 +57,7 @@ private: ...@@ -57,7 +57,7 @@ private:
SVL_DLLPRIVATE void InitRanges_Impl(sal_uInt16 nWh1, sal_uInt16 nWh2); SVL_DLLPRIVATE void InitRanges_Impl(sal_uInt16 nWh1, sal_uInt16 nWh2);
public: public:
SfxItemArray GetItems_Impl() const { return _aItems; } SfxItemArray GetItems_Impl() const { return m_pItems; }
private: private:
const SfxItemSet& operator=(const SfxItemSet &) SAL_DELETED_FUNCTION; const SfxItemSet& operator=(const SfxItemSet &) SAL_DELETED_FUNCTION;
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
virtual SfxItemSet * Clone(bool bItems = true, SfxItemPool *pToPool = 0) const; virtual SfxItemSet * Clone(bool bItems = true, SfxItemPool *pToPool = 0) const;
// Get number of items // Get number of items
sal_uInt16 Count() const { return _nCount; } sal_uInt16 Count() const { return m_nCount; }
sal_uInt16 TotalCount() const; sal_uInt16 TotalCount() const;
const SfxPoolItem& Get( sal_uInt16 nWhich, bool bSrchInParent = true ) const; const SfxPoolItem& Get( sal_uInt16 nWhich, bool bSrchInParent = true ) const;
...@@ -123,11 +123,11 @@ public: ...@@ -123,11 +123,11 @@ public:
void Differentiate( const SfxItemSet& rSet ); void Differentiate( const SfxItemSet& rSet );
void MergeValue( const SfxPoolItem& rItem, bool bOverwriteDefaults = false ); void MergeValue( const SfxPoolItem& rItem, bool bOverwriteDefaults = false );
SfxItemPool* GetPool() const { return _pPool; } SfxItemPool* GetPool() const { return m_pPool; }
const sal_uInt16* GetRanges() const { return _pWhichRanges; } const sal_uInt16* GetRanges() const { return m_pWhichRanges; }
void SetRanges( const sal_uInt16 *pRanges ); void SetRanges( const sal_uInt16 *pRanges );
void MergeRange( sal_uInt16 nFrom, sal_uInt16 nTo ); void MergeRange( sal_uInt16 nFrom, sal_uInt16 nTo );
const SfxItemSet* GetParent() const { return _pParent; } const SfxItemSet* GetParent() const { return m_pParent; }
SvStream & Load( SvStream &, bool bDirect = false, SvStream & Load( SvStream &, bool bDirect = false,
const SfxItemPool *pRefPool = 0 ); const SfxItemPool *pRefPool = 0 );
...@@ -141,7 +141,7 @@ public: ...@@ -141,7 +141,7 @@ public:
inline void SfxItemSet::SetParent( const SfxItemSet* pNew ) inline void SfxItemSet::SetParent( const SfxItemSet* pNew )
{ {
_pParent = pNew; m_pParent = pNew;
} }
class SVL_DLLPUBLIC SfxAllItemSet: public SfxItemSet class SVL_DLLPUBLIC SfxAllItemSet: public SfxItemSet
......
...@@ -44,7 +44,7 @@ set's SfxItemPool, and for poolable items only a single instance that ...@@ -44,7 +44,7 @@ set's SfxItemPool, and for poolable items only a single instance that
compares equal under the predicate operator== will be stored in the pool, compares equal under the predicate operator== will be stored in the pool,
regardless of how many sets contain it, thus conserving memory. regardless of how many sets contain it, thus conserving memory.
There are members _pWhichRanges for the valid ranges (as pairs of WhichIds), There are members m_pWhichRanges for the valid ranges (as pairs of WhichIds),
_nCount for the number of items contained, and _aItems for the pointers to m_nCount for the number of items contained, and m_pItems for the pointers to
the actual items. the actual items.
...@@ -25,14 +25,14 @@ ...@@ -25,14 +25,14 @@
SfxItemIter::SfxItemIter( const SfxItemSet& rItemSet ) SfxItemIter::SfxItemIter( const SfxItemSet& rItemSet )
: _rSet( rItemSet ) : _rSet( rItemSet )
{ {
if ( !_rSet._nCount ) if (!_rSet.m_nCount)
{ {
_nStt = 1; _nStt = 1;
_nEnd = 0; _nEnd = 0;
} }
else else
{ {
SfxItemArray ppFnd = _rSet._aItems; SfxItemArray ppFnd = _rSet.m_pItems;
// Find the first Item that is set // Find the first Item that is set
for ( _nStt = 0; !*(ppFnd + _nStt ); ++_nStt ) for ( _nStt = 0; !*(ppFnd + _nStt ); ++_nStt )
...@@ -53,7 +53,7 @@ SfxItemIter::~SfxItemIter() ...@@ -53,7 +53,7 @@ SfxItemIter::~SfxItemIter()
const SfxPoolItem* SfxItemIter::NextItem() const SfxPoolItem* SfxItemIter::NextItem()
{ {
SfxItemArray ppFnd = _rSet._aItems; SfxItemArray ppFnd = _rSet.m_pItems;
if( _nAkt < _nEnd ) if( _nAkt < _nEnd )
{ {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment