From 26bda9f4a82c9b1956a10e3dc52a99bc2f850ada Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 1 May 2013 10:08:20 +0100 Subject: convert message box return types to an enum Change-Id: I20889dc94aac1119c1ee9da873ce911887c1c335 --- sd/source/ui/annotations/annotationmanager.cxx | 4 ++-- sd/source/ui/func/fuoaprms.cxx | 2 +- sd/source/ui/func/fuprlout.cxx | 2 +- sd/source/ui/view/Outliner.cxx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index 2153af4c2e7f..3a50ba4510d9 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -729,8 +729,8 @@ void AnnotationManagerImpl::SelectNextAnnotation(bool bForeward) // The dialog is made modal with respect to the whole application. QueryBox aQuestionBox ( NULL, (WB_YES_NO | WB_DEF_YES), String(SdResId(nStringId))); aQuestionBox.SetImage (QueryBox::GetStandardImage()); - sal_uInt16 nBoxResult = aQuestionBox.Execute(); - if(nBoxResult != BUTTONID_YES) + short nBoxResult = aQuestionBox.Execute(); + if (nBoxResult != RET_YES) break; } while( true ); diff --git a/sd/source/ui/func/fuoaprms.cxx b/sd/source/ui/func/fuoaprms.cxx index bb031057ad82..3efc8aecf4eb 100644 --- a/sd/source/ui/func/fuoaprms.cxx +++ b/sd/source/ui/func/fuoaprms.cxx @@ -450,7 +450,7 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq ) SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); SfxAbstractDialog* pDlg = pFact ? pFact->CreatSdActionDialog( NULL, &aSet, mpView ) : 0; - sal_uInt16 nResult = pDlg ? pDlg->Execute() : RET_CANCEL; + short nResult = pDlg ? pDlg->Execute() : static_cast(RET_CANCEL); if( nResult == RET_OK ) { diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx index 9df2ef1ee815..67ae4cae1c7d 100644 --- a/sd/source/ui/func/fuprlout.cxx +++ b/sd/source/ui/func/fuprlout.cxx @@ -149,7 +149,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); AbstractSdPresLayoutDlg* pDlg = pFact ? pFact->CreateSdPresLayoutDlg(mpDocSh, NULL, aSet ) : 0; - sal_uInt16 nResult = pDlg ? pDlg->Execute() : RET_CANCEL; + sal_uInt16 nResult = pDlg ? pDlg->Execute() : static_cast(RET_CANCEL); switch (nResult) { diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index 1bd2eff6650a..d6b9e608ebca 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -1151,7 +1151,7 @@ bool Outliner::ShowWrapArroundDialog (void) String(SdResId(nStringId))); aQuestionBox.SetImage (QueryBox::GetStandardImage()); sal_uInt16 nBoxResult = ShowModalMessageBox(aQuestionBox); - bDoWrapArround = (nBoxResult == BUTTONID_YES); + bDoWrapArround = (nBoxResult == RET_YES); } return bDoWrapArround; -- cgit