Kaydet (Commit) 4e579add authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

remove obsolete SetCharBound/IsCharBound functions

Change-Id: I56e7f08178122ed37fcb4c1175770cd202d3c98d
üst 944d4eae
...@@ -1404,9 +1404,6 @@ namespace ...@@ -1404,9 +1404,6 @@ namespace
rArr.push_back( *this ); rArr.push_back( *this );
} }
void SetCharBound( bool bCB ) { m_bOther = bCB; }
bool IsCharBound() const { return m_bOther; }
void SetCount( sal_uInt16 n ) { m_nIdx = n; } void SetCount( sal_uInt16 n ) { m_nIdx = n; }
sal_uInt16 GetCount() const { return m_nIdx; } sal_uInt16 GetCount() const { return m_nIdx; }
sal_uInt16 DecCount() { return --m_nIdx; } sal_uInt16 DecCount() { return --m_nIdx; }
...@@ -1450,7 +1447,7 @@ namespace ...@@ -1450,7 +1447,7 @@ namespace
FLY_AT_PARA == rAnchor.GetAnchorId() ) || FLY_AT_PARA == rAnchor.GetAnchorId() ) ||
( FLY_AT_CHAR == rAnchor.GetAnchorId() ) ) ) ( FLY_AT_CHAR == rAnchor.GetAnchorId() ) ) )
{ {
aSave.SetCharBound(false); aSave.m_bOther = false;
aSave.SetContent( pAPos->nContent.GetIndex() ); aSave.SetContent( pAPos->nContent.GetIndex() );
OSL_ENSURE( nNode == pAPos->nNode.GetIndex(), OSL_ENSURE( nNode == pAPos->nNode.GetIndex(),
...@@ -1460,7 +1457,7 @@ namespace ...@@ -1460,7 +1457,7 @@ namespace
if( nCntnt <= aSave.GetContent() ) if( nCntnt <= aSave.GetContent() )
{ {
if( SAVEFLY_SPLIT == nSaveFly ) if( SAVEFLY_SPLIT == nSaveFly )
aSave.SetCharBound(true); aSave.m_bOther = true;
else else
continue; continue;
} }
...@@ -1495,14 +1492,14 @@ namespace ...@@ -1495,14 +1492,14 @@ namespace
( FLY_AT_PARA == rAnchor.GetAnchorId() || ( FLY_AT_PARA == rAnchor.GetAnchorId() ||
FLY_AT_CHAR == rAnchor.GetAnchorId() ) ) FLY_AT_CHAR == rAnchor.GetAnchorId() ) )
{ {
aSave.SetCharBound(false); aSave.m_bOther = false;
aSave.SetContent( pAPos->nContent.GetIndex() ); aSave.SetContent( pAPos->nContent.GetIndex() );
if ( FLY_AT_CHAR == rAnchor.GetAnchorId() ) if ( FLY_AT_CHAR == rAnchor.GetAnchorId() )
{ {
if( nCntnt <= aSave.GetContent() ) if( nCntnt <= aSave.GetContent() )
{ {
if( SAVEFLY_SPLIT == nSaveFly ) if( SAVEFLY_SPLIT == nSaveFly )
aSave.SetCharBound(true); aSave.m_bOther = true;
else else
continue; continue;
} }
...@@ -1528,7 +1525,7 @@ namespace ...@@ -1528,7 +1525,7 @@ namespace
{ {
_SwSaveTypeCountContent aSave( rSaveArr, n ); _SwSaveTypeCountContent aSave( rSaveArr, n );
SwPosition* pPos = 0; SwPosition* pPos = 0;
if(!aSave.IsCharBound()) if(!aSave.m_bOther)
{ {
SwFrmFmt *pFrmFmt = (*pSpz)[ aSave.GetCount() ]; SwFrmFmt *pFrmFmt = (*pSpz)[ aSave.GetCount() ];
const SwFmtAnchor& rFlyAnchor = pFrmFmt->GetAnchor(); const SwFmtAnchor& rFlyAnchor = pFrmFmt->GetAnchor();
......
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