main/sw/source/core/layout/trvlfrm.cxx
/** get page frame by phyiscal page number

    OD 14.01.2003 #103492#

    @return pointer to the page frame with the given physical page number
*/
get page frame by phyiscal page number
OD 14.01.2003 #103492
get page frame by phyiscal page number OD 14 . 01 . 2003 #103492
SwPageFrm* SwRootFrm::GetPageByPageNum( sal_uInt16 _nPageNum ) const
{
    const SwPageFrm* pPageFrm = static_cast<const SwPageFrm*>( Lower() );
    while ( pPageFrm && pPageFrm->GetPhyPageNum() < _nPageNum )
    {
          pPageFrm = static_cast<const SwPageFrm*>( pPageFrm->GetNext() );
    }
    if ( pPageFrm && pPageFrm->GetPhyPageNum() == _nPageNum )
    {
        return const_cast<SwPageFrm*>( pPageFrm );
    }
    else
    {
        return 0;
    }
}
SwPageFrm * SwRootFrm :: GetPageByPageNum ( sal_uInt16 _nPageNum ) const { const SwPageFrm * pPageFrm = static_cast < const SwPageFrm * > ( Lower ( ) ) ; while ( pPageFrm && pPageFrm -> GetPhyPageNum ( ) < _nPageNum ) { pPageFrm = static_cast < const SwPageFrm * > ( pPageFrm -> GetNext ( ) ) ; } if ( pPageFrm && pPageFrm -> GetPhyPageNum ( ) == _nPageNum ) { return const_cast < SwPageFrm * > ( pPageFrm ) ; } else { return 0 ; } }
get page frame by phyiscal page number
OD 14.01.2003 #103492
get page frame by phyiscal page number OD 14 . 01 . 2003 #103492