diff options
Diffstat (limited to 'sw/source/core/doc/docchart.cxx')
-rw-r--r-- | sw/source/core/doc/docchart.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx index ae2307935674..651807565fc0 100644 --- a/sw/source/core/doc/docchart.cxx +++ b/sw/source/core/doc/docchart.cxx @@ -62,7 +62,7 @@ void SwTable::UpdateCharts() const GetFrmFmt()->GetDoc()->UpdateCharts( GetFrmFmt()->GetName() ); } -sal_Bool SwTable::IsTblComplexForChart( const String& rSelection ) const +bool SwTable::IsTblComplexForChart( const String& rSelection ) const { const SwTableBox* pSttBox, *pEndBox; if( 2 < rSelection.Len() ) @@ -132,7 +132,7 @@ void SwDoc::_UpdateCharts( const SwTable& rTbl, ViewShell& rVSh ) const SwNodeIndex aIdx( *GetNodes().GetEndOfAutotext().StartOfSectionNode(), 1 ); while( 0 != (pStNd = aIdx.GetNode().GetStartNode()) ) { - aIdx++; + ++aIdx; if( 0 != ( pONd = aIdx.GetNode().GetOLENode() ) && aName.Equals( pONd->GetChartTblName() ) && pONd->getLayoutFrm( rVSh.GetLayout() ) ) @@ -162,11 +162,9 @@ void SwDoc::UpdateCharts( const String &rName ) const void SwDoc::SetTableName( SwFrmFmt& rTblFmt, const String &rNewName ) { -// sal_Bool bStop = 1; - const String aOldName( rTblFmt.GetName() ); - sal_Bool bNameFound = 0 == rNewName.Len(); + bool bNameFound = 0 == rNewName.Len(); if( !bNameFound ) { SwFrmFmt* pFmt; @@ -175,7 +173,7 @@ void SwDoc::SetTableName( SwFrmFmt& rTblFmt, const String &rNewName ) if( !( pFmt = rTbl[ --i ] )->IsDefault() && pFmt->GetName() == rNewName && IsUsed( *pFmt ) ) { - bNameFound = sal_True; + bNameFound = true; break; } } @@ -189,7 +187,7 @@ void SwDoc::SetTableName( SwFrmFmt& rTblFmt, const String &rNewName ) SwNodeIndex aIdx( *GetNodes().GetEndOfAutotext().StartOfSectionNode(), 1 ); while ( 0 != (pStNd = aIdx.GetNode().GetStartNode()) ) { - aIdx++; + ++aIdx; SwOLENode *pNd = aIdx.GetNode().GetOLENode(); if( pNd && aOldName == pNd->GetChartTblName() ) { @@ -236,7 +234,7 @@ void SwDoc::CreateChartInternalDataProviders( const SwTable *pTable ) SwNodeIndex aIdx( *GetNodes().GetEndOfAutotext().StartOfSectionNode(), 1 ); while (0 != (pStNd = aIdx.GetNode().GetStartNode())) { - aIdx++; + ++aIdx; if( 0 != ( pONd = aIdx.GetNode().GetOLENode() ) && aName.Equals( pONd->GetChartTblName() ) /* OLE node is chart? */ && 0 != (pONd->getLayoutFrm( GetCurrentLayout() )) /* chart frame is not hidden */ ) |