Kaydet (Commit) 4351703c authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: prefix members of SwAttrSet

Change-Id: I0f38c87d46f913a3bbb5f3e40b6ae71c515a8c9c
üst 561ce3f0
...@@ -173,7 +173,7 @@ public: ...@@ -173,7 +173,7 @@ public:
class SW_DLLPUBLIC SwAttrSet : public SfxItemSet class SW_DLLPUBLIC SwAttrSet : public SfxItemSet
{ {
// Pointer for Modify-System // Pointer for Modify-System
SwAttrSet *pOldSet, *pNewSet; SwAttrSet *m_pOldSet, *m_pNewSet;
// Notification-Callback // Notification-Callback
virtual void Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew ) override; virtual void Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew ) override;
......
...@@ -145,17 +145,17 @@ void SwAttrPool::removeAndDeleteSecondaryPools() ...@@ -145,17 +145,17 @@ void SwAttrPool::removeAndDeleteSecondaryPools()
} }
SwAttrSet::SwAttrSet( SwAttrPool& rPool, sal_uInt16 nWh1, sal_uInt16 nWh2 ) SwAttrSet::SwAttrSet( SwAttrPool& rPool, sal_uInt16 nWh1, sal_uInt16 nWh2 )
: SfxItemSet( rPool, nWh1, nWh2 ), pOldSet( 0 ), pNewSet( 0 ) : SfxItemSet( rPool, nWh1, nWh2 ), m_pOldSet( 0 ), m_pNewSet( 0 )
{ {
} }
SwAttrSet::SwAttrSet( SwAttrPool& rPool, const sal_uInt16* nWhichPairTable ) SwAttrSet::SwAttrSet( SwAttrPool& rPool, const sal_uInt16* nWhichPairTable )
: SfxItemSet( rPool, nWhichPairTable ), pOldSet( 0 ), pNewSet( 0 ) : SfxItemSet( rPool, nWhichPairTable ), m_pOldSet( 0 ), m_pNewSet( 0 )
{ {
} }
SwAttrSet::SwAttrSet( const SwAttrSet& rSet ) SwAttrSet::SwAttrSet( const SwAttrSet& rSet )
: SfxItemSet( rSet ), pOldSet( 0 ), pNewSet( 0 ) : SfxItemSet( rSet ), m_pOldSet( 0 ), m_pNewSet( 0 )
{ {
} }
...@@ -194,30 +194,30 @@ SfxItemSet* SwAttrSet::Clone( bool bItems, SfxItemPool *pToPool ) const ...@@ -194,30 +194,30 @@ SfxItemSet* SwAttrSet::Clone( bool bItems, SfxItemPool *pToPool ) const
bool SwAttrSet::Put_BC( const SfxPoolItem& rAttr, bool SwAttrSet::Put_BC( const SfxPoolItem& rAttr,
SwAttrSet* pOld, SwAttrSet* pNew ) SwAttrSet* pOld, SwAttrSet* pNew )
{ {
pNewSet = pNew; m_pNewSet = pNew;
pOldSet = pOld; m_pOldSet = pOld;
bool bRet = 0 != SfxItemSet::Put( rAttr ); bool bRet = 0 != SfxItemSet::Put( rAttr );
pOldSet = pNewSet = 0; m_pOldSet = m_pNewSet = 0;
return bRet; return bRet;
} }
bool SwAttrSet::Put_BC( const SfxItemSet& rSet, bool SwAttrSet::Put_BC( const SfxItemSet& rSet,
SwAttrSet* pOld, SwAttrSet* pNew ) SwAttrSet* pOld, SwAttrSet* pNew )
{ {
pNewSet = pNew; m_pNewSet = pNew;
pOldSet = pOld; m_pOldSet = pOld;
bool bRet = SfxItemSet::Put( rSet ); bool bRet = SfxItemSet::Put( rSet );
pOldSet = pNewSet = 0; m_pOldSet = m_pNewSet = 0;
return bRet; return bRet;
} }
sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich, sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich,
SwAttrSet* pOld, SwAttrSet* pNew ) SwAttrSet* pOld, SwAttrSet* pNew )
{ {
pNewSet = pNew; m_pNewSet = pNew;
pOldSet = pOld; m_pOldSet = pOld;
sal_uInt16 nRet = SfxItemSet::ClearItem( nWhich ); sal_uInt16 nRet = SfxItemSet::ClearItem( nWhich );
pOldSet = pNewSet = 0; m_pOldSet = m_pNewSet = 0;
return nRet; return nRet;
} }
...@@ -225,32 +225,32 @@ sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2, ...@@ -225,32 +225,32 @@ sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
SwAttrSet* pOld, SwAttrSet* pNew ) SwAttrSet* pOld, SwAttrSet* pNew )
{ {
OSL_ENSURE( nWhich1 <= nWhich2, "no valid range" ); OSL_ENSURE( nWhich1 <= nWhich2, "no valid range" );
pNewSet = pNew; m_pNewSet = pNew;
pOldSet = pOld; m_pOldSet = pOld;
sal_uInt16 nRet = 0; sal_uInt16 nRet = 0;
for( ; nWhich1 <= nWhich2; ++nWhich1 ) for( ; nWhich1 <= nWhich2; ++nWhich1 )
nRet = nRet + SfxItemSet::ClearItem( nWhich1 ); nRet = nRet + SfxItemSet::ClearItem( nWhich1 );
pOldSet = pNewSet = 0; m_pOldSet = m_pNewSet = 0;
return nRet; return nRet;
} }
int SwAttrSet::Intersect_BC( const SfxItemSet& rSet, int SwAttrSet::Intersect_BC( const SfxItemSet& rSet,
SwAttrSet* pOld, SwAttrSet* pNew ) SwAttrSet* pOld, SwAttrSet* pNew )
{ {
pNewSet = pNew; m_pNewSet = pNew;
pOldSet = pOld; m_pOldSet = pOld;
SfxItemSet::Intersect( rSet ); SfxItemSet::Intersect( rSet );
pOldSet = pNewSet = 0; m_pOldSet = m_pNewSet = 0;
return pNew ? pNew->Count() : ( pOld ? pOld->Count() : 0 ); return pNew ? pNew->Count() : ( pOld ? pOld->Count() : 0 );
} }
/// Notification callback /// Notification callback
void SwAttrSet::Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew ) void SwAttrSet::Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew )
{ {
if( pOldSet ) if( m_pOldSet )
pOldSet->PutChgd( rOld ); m_pOldSet->PutChgd( rOld );
if( pNewSet ) if( m_pNewSet )
pNewSet->PutChgd( rNew ); m_pNewSet->PutChgd( rNew );
} }
/** special treatment for some attributes /** special treatment for some attributes
......
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