summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-28 11:57:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-28 13:44:18 +0200
commit3c20a55d07b6b74d2ab69e76617d3bfffd885f13 (patch)
tree138c4d9892eb7b7af2bf57a54a08363ce5718675
parentdea3816e4dda94a6909739329d658f44b1255c21 (diff)
SwPagePreviewWin::MovePage return type wants to be bool
Change-Id: I827807ebb596941f7749a318770d18f4036f35ed
-rw-r--r--sw/source/uibase/inc/pview.hxx2
-rw-r--r--sw/source/uibase/uiview/pview.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/inc/pview.hxx b/sw/source/uibase/inc/pview.hxx
index b33a4518b625..3434d4622d56 100644
--- a/sw/source/uibase/inc/pview.hxx
+++ b/sw/source/uibase/inc/pview.hxx
@@ -107,7 +107,7 @@ public:
// Add <MV_SELPAGE>, <MV_SCROLL>
enum MoveMode{ MV_CALC, MV_PAGE_UP, MV_PAGE_DOWN, MV_DOC_STT, MV_DOC_END,
MV_SELPAGE, MV_SCROLL, MV_NEWWINSIZE };
- int MovePage( int eMoveMode );
+ bool MovePage( int eMoveMode );
// Create the status bar's string
OUString GetStatusStr( sal_uInt16 nPageCount ) const;
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx
index 973cc9114358..497785075c29 100644
--- a/sw/source/uibase/uiview/pview.cxx
+++ b/sw/source/uibase/uiview/pview.cxx
@@ -270,7 +270,7 @@ void SwPagePreviewWin::CalcWish( sal_uInt8 nNewRow, sal_uInt8 nNewCol )
}
// mnSttPage is Absolute
-int SwPagePreviewWin::MovePage( int eMoveMode )
+bool SwPagePreviewWin::MovePage( int eMoveMode )
{
// number of pages up
const sal_uInt16 nPages = mnRow * mnCol;
@@ -353,7 +353,7 @@ int SwPagePreviewWin::MovePage( int eMoveMode )
maPaintedPreviewDocRect, bPaintPageAtFirstCol );
if( nNewSttPage == mnSttPage &&
eMoveMode != MV_SELPAGE )
- return sal_False;
+ return false;
SetPagePreview(mnRow, mnCol);
mnSttPage = nNewSttPage;
@@ -368,7 +368,7 @@ int SwPagePreviewWin::MovePage( int eMoveMode )
SfxBindings& rBindings = mrView.GetViewFrame()->GetBindings();
rBindings.Invalidate( aInval );
- return sal_True;
+ return true;
}
void SwPagePreviewWin::SetWinSize( const Size& rNewSize )