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

sw: prefix members of SwContentNode

Change-Id: Iecb7cd82d88bd1ee82f074e17319e5ce095e2690
üst e9c862e9
...@@ -354,7 +354,7 @@ class SW_DLLPUBLIC SwContentNode: public SwModify, public SwNode, public SwIndex ...@@ -354,7 +354,7 @@ class SW_DLLPUBLIC SwContentNode: public SwModify, public SwNode, public SwIndex
{ {
//FEATURE::CONDCOLL //FEATURE::CONDCOLL
SwDepend* pCondColl; SwDepend* m_pCondColl;
//FEATURE::CONDCOLL //FEATURE::CONDCOLL
mutable bool mbSetModifyAtAttr; mutable bool mbSetModifyAtAttr;
...@@ -717,13 +717,13 @@ inline const SwDoc* SwNode::GetDoc() const ...@@ -717,13 +717,13 @@ inline const SwDoc* SwNode::GetDoc() const
inline SwFormatColl* SwContentNode::GetCondFormatColl() const inline SwFormatColl* SwContentNode::GetCondFormatColl() const
{ {
return pCondColl ? static_cast<SwFormatColl*>(pCondColl->GetRegisteredIn()) : 0; return m_pCondColl ? static_cast<SwFormatColl*>(m_pCondColl->GetRegisteredIn()) : 0;
} }
inline SwFormatColl& SwContentNode::GetAnyFormatColl() const inline SwFormatColl& SwContentNode::GetAnyFormatColl() const
{ {
return pCondColl && pCondColl->GetRegisteredIn() return m_pCondColl && m_pCondColl->GetRegisteredIn()
? *static_cast<SwFormatColl*>(pCondColl->GetRegisteredIn()) ? *static_cast<SwFormatColl*>(m_pCondColl->GetRegisteredIn())
: *const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn())); : *const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn()));
} }
......
...@@ -995,7 +995,7 @@ SwContentNode::SwContentNode( const SwNodeIndex &rWhere, const sal_uInt8 nNdType ...@@ -995,7 +995,7 @@ SwContentNode::SwContentNode( const SwNodeIndex &rWhere, const sal_uInt8 nNdType
SwFormatColl *pColl ) SwFormatColl *pColl )
: SwModify( pColl ), // CrsrsShell, FrameFormat, : SwModify( pColl ), // CrsrsShell, FrameFormat,
SwNode( rWhere, nNdType ), SwNode( rWhere, nNdType ),
pCondColl( 0 ), m_pCondColl( 0 ),
mbSetModifyAtAttr( false ) mbSetModifyAtAttr( false )
{ {
} }
...@@ -1006,7 +1006,7 @@ SwContentNode::~SwContentNode() ...@@ -1006,7 +1006,7 @@ SwContentNode::~SwContentNode()
// Thus, we need to delete all Frames in the dependency list. // Thus, we need to delete all Frames in the dependency list.
DelFrms(false); DelFrms(false);
delete pCondColl; delete m_pCondColl;
if ( mpAttrSet.get() && mbSetModifyAtAttr ) if ( mpAttrSet.get() && mbSetModifyAtAttr )
const_cast<SwAttrSet*>(static_cast<const SwAttrSet*>(mpAttrSet.get()))->SetModifyAtAttr( 0 ); const_cast<SwAttrSet*>(static_cast<const SwAttrSet*>(mpAttrSet.get()))->SetModifyAtAttr( 0 );
...@@ -1698,7 +1698,7 @@ const SfxPoolItem* SwContentNode::GetNoCondAttr( sal_uInt16 nWhich, ...@@ -1698,7 +1698,7 @@ const SfxPoolItem* SwContentNode::GetNoCondAttr( sal_uInt16 nWhich,
bool bInParents ) const bool bInParents ) const
{ {
const SfxPoolItem* pFnd = 0; const SfxPoolItem* pFnd = 0;
if( pCondColl && pCondColl->GetRegisteredIn() ) if( m_pCondColl && m_pCondColl->GetRegisteredIn() )
{ {
if( !GetpSwAttrSet() || ( SfxItemState::SET != GetpSwAttrSet()->GetItemState( if( !GetpSwAttrSet() || ( SfxItemState::SET != GetpSwAttrSet()->GetItemState(
nWhich, false, &pFnd ) && bInParents )) nWhich, false, &pFnd ) && bInParents ))
...@@ -1782,15 +1782,15 @@ bool SwContentNode::CanJoinPrev( SwNodeIndex* pIdx ) const ...@@ -1782,15 +1782,15 @@ bool SwContentNode::CanJoinPrev( SwNodeIndex* pIdx ) const
//FEATURE::CONDCOLL //FEATURE::CONDCOLL
void SwContentNode::SetCondFormatColl( SwFormatColl* pColl ) void SwContentNode::SetCondFormatColl( SwFormatColl* pColl )
{ {
if( (!pColl && pCondColl) || ( pColl && !pCondColl ) || if( (!pColl && m_pCondColl) || ( pColl && !m_pCondColl ) ||
( pColl && pColl != pCondColl->GetRegisteredIn() ) ) ( pColl && pColl != m_pCondColl->GetRegisteredIn() ) )
{ {
SwFormatColl* pOldColl = GetCondFormatColl(); SwFormatColl* pOldColl = GetCondFormatColl();
delete pCondColl; delete m_pCondColl;
if( pColl ) if( pColl )
pCondColl = new SwDepend( this, pColl ); m_pCondColl = new SwDepend( this, pColl );
else else
pCondColl = 0; m_pCondColl = 0;
if( GetpSwAttrSet() ) if( GetpSwAttrSet() )
{ {
...@@ -1934,7 +1934,7 @@ void SwContentNode::ChkCondColl() ...@@ -1934,7 +1934,7 @@ void SwContentNode::ChkCondColl()
if( pCColl ) if( pCColl )
SetCondFormatColl( pCColl->GetTextFormatColl() ); SetCondFormatColl( pCColl->GetTextFormatColl() );
else if( pCondColl ) else if( m_pCondColl )
SetCondFormatColl( 0 ); SetCondFormatColl( 0 );
} }
} }
......
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