summaryrefslogtreecommitdiff
path: root/uui/source/iahndl-errorhandler.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-02-07 23:02:28 +0100
committerMichael Stahl <mstahl@redhat.com>2017-02-07 23:02:28 +0100
commit32cae6a2eaa41568888df9c8fc5605debd8d704a (patch)
treea17234bc71f7cbde274bfa2c9930d7ea2dfe35bf /uui/source/iahndl-errorhandler.cxx
parent178f5306979ef55a5682191dcdafb9e926e57cde (diff)
Revert "create ErrorHandlerFlags scoped enum for error handling flags"
This reverts commit 05e78bde26d8b8b257ed22a0ce20c5b386a629d1. Depends on the other commit that needs reverting
Diffstat (limited to 'uui/source/iahndl-errorhandler.cxx')
-rw-r--r--uui/source/iahndl-errorhandler.cxx32
1 files changed, 14 insertions, 18 deletions
diff --git a/uui/source/iahndl-errorhandler.cxx b/uui/source/iahndl-errorhandler.cxx
index a549cc2a4e7b..786ba755a298 100644
--- a/uui/source/iahndl-errorhandler.cxx
+++ b/uui/source/iahndl-errorhandler.cxx
@@ -40,7 +40,7 @@ using namespace com::sun::star;
namespace {
-ErrorHandlerFlags
+sal_uInt16
executeErrorDialog(
vcl::Window * pParent,
task::InteractionClassification eClassification,
@@ -101,29 +101,27 @@ executeErrorDialog(
throw uno::RuntimeException("out of memory");
}
- sal_uInt16 aMessResult = xBox->Execute();
+ sal_uInt16 aResult = xBox->Execute();
xBox.disposeAndClear();
- ErrorHandlerFlags aResult = ErrorHandlerFlags::NONE;
- switch( aMessResult )
+ switch( aResult )
{
case RET_OK:
- aResult = ErrorHandlerFlags::ButtonsOk;
+ aResult = ERRCODE_BUTTON_OK;
break;
case RET_CANCEL:
- aResult = ErrorHandlerFlags::ButtonsCancel;
+ aResult = ERRCODE_BUTTON_CANCEL;
break;
case RET_YES:
- aResult = ErrorHandlerFlags::ButtonsYes;
+ aResult = ERRCODE_BUTTON_YES;
break;
case RET_NO:
- aResult = ErrorHandlerFlags::ButtonsNo;
+ aResult = ERRCODE_BUTTON_NO;
break;
case RET_RETRY:
- aResult = ErrorHandlerFlags::ButtonsRetry;
+ aResult = ERRCODE_BUTTON_RETRY;
break;
- default: assert(false);
}
return aResult;
@@ -259,12 +257,12 @@ UUIInteractionHelper::handleErrorHandlerRequest(
}
}
- ErrorHandlerFlags nResult = executeErrorDialog(
+ sal_uInt16 nResult = executeErrorDialog(
getParentProperty(), eClassification, aContext, aMessage, nButtonMask );
switch (nResult)
{
- case ErrorHandlerFlags::ButtonsOk:
+ case ERRCODE_BUTTON_OK:
OSL_ENSURE(xApprove.is() || xAbort.is(), "unexpected situation");
if (xApprove.is())
xApprove->select();
@@ -272,31 +270,29 @@ UUIInteractionHelper::handleErrorHandlerRequest(
xAbort->select();
break;
- case ErrorHandlerFlags::ButtonsCancel:
+ case ERRCODE_BUTTON_CANCEL:
OSL_ENSURE(xAbort.is(), "unexpected situation");
if (xAbort.is())
xAbort->select();
break;
- case ErrorHandlerFlags::ButtonsRetry:
+ case ERRCODE_BUTTON_RETRY:
OSL_ENSURE(xRetry.is(), "unexpected situation");
if (xRetry.is())
xRetry->select();
break;
- case ErrorHandlerFlags::ButtonsNo:
+ case ERRCODE_BUTTON_NO:
OSL_ENSURE(xDisapprove.is(), "unexpected situation");
if (xDisapprove.is())
xDisapprove->select();
break;
- case ErrorHandlerFlags::ButtonsYes:
+ case ERRCODE_BUTTON_YES:
OSL_ENSURE(xApprove.is(), "unexpected situation");
if (xApprove.is())
xApprove->select();
break;
-
- default: break;
}
}