diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/inc/view.hxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewport.cxx | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/inc/view.hxx b/sw/source/uibase/inc/view.hxx index 8cd1d5cf01ca..5aaba5ac2855 100644 --- a/sw/source/uibase/inc/view.hxx +++ b/sw/source/uibase/inc/view.hxx @@ -299,8 +299,8 @@ class SW_DLLPUBLIC SwView: public SfxViewShell // scrollbar movements SAL_DLLPRIVATE long PageUp(); SAL_DLLPRIVATE long PageDown(); - SAL_DLLPRIVATE long PageUpCrsr(bool bSelect); - SAL_DLLPRIVATE long PageDownCrsr(bool bSelect); + SAL_DLLPRIVATE bool PageUpCrsr(bool bSelect); + SAL_DLLPRIVATE bool PageDownCrsr(bool bSelect); SAL_DLLPRIVATE long PhyPageUp(); SAL_DLLPRIVATE long PhyPageDown(); diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx index bcdca2d8e6df..00e31429a9e0 100644 --- a/sw/source/uibase/uiview/viewport.cxx +++ b/sw/source/uibase/uiview/viewport.cxx @@ -619,7 +619,7 @@ long SwView::PhyPageDown() return 1; } -long SwView::PageUpCrsr( bool bSelect ) +bool SwView::PageUpCrsr( bool bSelect ) { if ( !bSelect ) { @@ -629,7 +629,7 @@ long SwView::PageUpCrsr( bool bSelect ) m_pWrtShell->MoveCrsr(); m_pWrtShell->GotoFtnAnchor(); m_pWrtShell->Right(CRSR_SKIP_CHARS, false, 1, false ); - return 1; + return true; } } @@ -640,12 +640,12 @@ long SwView::PageUpCrsr( bool bSelect ) PageUp() ) { m_pWrtShell->ResetCursorStack(); - return sal_True; + return true; } - return sal_False; + return false; } -long SwView::PageDownCrsr(bool bSelect) +bool SwView::PageDownCrsr(bool bSelect) { SwTwips lOff = 0; if ( GetPageScrollDownOffset( lOff ) && @@ -654,9 +654,9 @@ long SwView::PageDownCrsr(bool bSelect) PageDown() ) { m_pWrtShell->ResetCursorStack(); - return sal_True; + return true; } - return sal_False; + return false; } // Handler of the scrollbars |