diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-10 00:37:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 09:06:54 +0100 |
commit | 51520337fcc38af453bc5f2ef2e75cdc733c52c7 (patch) | |
tree | abe4198168419b17402cf5c8a4e75a18aab30aff /sw/source/filter/ww8/ww8par2.cxx | |
parent | 5805c3fe6bbbf49c7b1fb2fd2ac5d48e84b746ae (diff) |
callcatcher: unused lcl_PamContainsFly
Diffstat (limited to 'sw/source/filter/ww8/ww8par2.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index e1c9d28dd056..aadcce0b74de 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -3516,45 +3516,6 @@ bool SwWW8ImplReader::StartTable(WW8_CP nStartCp) return bSuccess; } -bool lcl_PamContainsFly(SwPaM & rPam) -{ - bool bResult = false; - SwNodeRange aRg( rPam.Start()->nNode, rPam.End()->nNode ); - SwDoc * pDoc = rPam.GetDoc(); - - sal_uInt16 n = 0; - SwSpzFrmFmts * pSpzFmts = pDoc->GetSpzFrmFmts(); - sal_uInt16 nCount = pSpzFmts->Count(); - while (!bResult && n < nCount) - { - SwFrmFmt* pFly = (*pSpzFmts)[n]; - const SwFmtAnchor* pAnchor = &pFly->GetAnchor(); - - switch (pAnchor->GetAnchorId()) - { - case FLY_AT_PARA: - case FLY_AT_CHAR: - { - const SwPosition* pAPos = pAnchor->GetCntntAnchor(); - - if (pAPos != NULL && - aRg.aStart <= pAPos->nNode && - pAPos->nNode <= aRg.aEnd) - { - bResult = true; - } - } - break; - default: - break; - } - - ++n; - } - - return bResult; -} - void SwWW8ImplReader::TabCellEnd() { if (nInTable && pTableDesc) |