diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-18 14:46:09 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-18 15:17:34 +0200 |
commit | e094ac0ff95f82a05810fc98945eb5229d19eadb (patch) | |
tree | 7393f3d2b0d1642ee31c5a0143b5dd382fc3da72 /sw/source/core/layout/laycache.cxx | |
parent | 9e207520a697dd63ee8ef4de5b2b55df2952b34b (diff) |
sw: remaining unused methods
Change-Id: Ie150d2e497053966c5f75cea50c87888fda98659
Diffstat (limited to 'sw/source/core/layout/laycache.cxx')
-rw-r--r-- | sw/source/core/layout/laycache.cxx | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx index 0a3ff4c2af78..8f835aa1dbdf 100644 --- a/sw/source/core/layout/laycache.cxx +++ b/sw/source/core/layout/laycache.cxx @@ -992,69 +992,6 @@ void SwLayHelper::_CheckFlyCache( SwPageFrm* pPage ) } } -/** - * looks for the given text frame in the fly cache and sets - * the position and size, if possible. - * The fly cache is sorted by pages and we start searching with the given page. - * If we found the page number in the fly cache, we set - * the rpPage parameter to the right page, if possible. - */ -bool SwLayHelper::CheckPageFlyCache( SwPageFrm* &rpPage, SwFlyFrm* pFly ) -{ - if( !pFly->GetAnchorFrm() || !pFly->GetVirtDrawObj() || - pFly->GetAnchorFrm()->FindFooterOrHeader() ) - return false; - bool bRet = false; - SwDoc* pDoc = rpPage->GetFmt()->GetDoc(); - SwLayCacheImpl *pCache = pDoc->GetLayoutCache() ? - pDoc->GetLayoutCache()->LockImpl() : NULL; - if( pCache ) - { - sal_uInt16 nPgNum = rpPage->GetPhyPageNum(); - sal_uInt16 nIdx = 0; - sal_uInt16 nCnt = pCache->GetFlyCount(); - sal_uLong nOrdNum = pFly->GetVirtDrawObj()->GetOrdNum(); - SwFlyCache* pFlyC = 0; - - // skip fly frames from pages before the current page - while( nIdx < nCnt && - nPgNum > (pFlyC = &pCache->GetFlyCache( nIdx ))->nPageNum ) - ++nIdx; - - while( nIdx < nCnt && - nOrdNum != (pFlyC = &pCache->GetFlyCache( nIdx ))->nOrdNum ) - ++nIdx; - if( nIdx < nCnt ) - { - SwPageFrm *pPage = rpPage; - while( pPage && pPage->GetPhyPageNum() < pFlyC->nPageNum ) - pPage = (SwPageFrm*)pPage->GetNext(); - // #i43266# - if the found page is an empty page, - // take the previous one (take next one, if previous one doesn't exists) - if ( pPage && pPage->IsEmptyPage() ) - { - pPage = static_cast<SwPageFrm*>( pPage->GetPrev() - ? pPage->GetPrev() - : pPage->GetNext() ); - } - if( pPage ) - { - rpPage = pPage; - pFly->Frm().Pos().X() = pFlyC->Left() + pPage->Frm().Left(); - pFly->Frm().Pos().Y() = pFlyC->Top() + pPage->Frm().Top(); - if ( pCache->IsUseFlyCache() ) - { - pFly->Frm().Width( pFlyC->Width() ); - pFly->Frm().Height( pFlyC->Height() ); - } - bRet = true; - } - } - pDoc->GetLayoutCache()->UnlockImpl(); - } - return bRet; -} - SwLayCacheIoImpl::SwLayCacheIoImpl( SvStream& rStrm, bool bWrtMd ) : pStream( &rStrm ), nFlagRecEnd ( 0 ), |