Kaydet (Commit) b4869c08 authored tarafından Jim Raykowski's avatar Jim Raykowski

tdf#115600 Display messages in Findbar for Navigate By Page

...and make Navigate By Page wrap

Change-Id: Iec45d87f665f75e90378c302b8c3098bb5cbe7d1
Reviewed-on: https://gerrit.libreoffice.org/70640
Tested-by: Jenkins
Reviewed-by: 's avatarJim Raykowski <raykowj@gmail.com>
üst e9651c25
......@@ -348,7 +348,32 @@ IMPL_LINK( SwView, MoveNavigationHdl, void*, p, void )
switch( m_nMoveType )
{
case NID_PGE:
bNext ? PhyPageDown() : PhyPageUp();
if ( bNext )
{
if ( USHRT_MAX == rSh.GetNextPrevPageNum( true ) )
{
rSh.GotoPage( 1, true );
SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::EndWrapped );
}
else
{
PhyPageDown();
SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::Empty );
}
}
else
{
if ( USHRT_MAX == rSh.GetNextPrevPageNum( false ) )
{
rSh.GotoPage( rSh.GetPageCnt(), true );
SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::StartWrapped );
}
else
{
PhyPageUp();
SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::Empty );
}
}
break;
case NID_TBL :
rSh.EnterStdMode();
......
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