From 32cae6a2eaa41568888df9c8fc5605debd8d704a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 7 Feb 2017 23:02:28 +0100 Subject: Revert "create ErrorHandlerFlags scoped enum for error handling flags" This reverts commit 05e78bde26d8b8b257ed22a0ce20c5b386a629d1. Depends on the other commit that needs reverting --- sc/source/filter/xml/xmlwrap.cxx | 4 ++-- sc/source/ui/docshell/docsh.cxx | 2 +- sc/source/ui/docshell/docsh8.cxx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 0bf1475ca9c9..82c90dff5ef2 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -220,13 +220,13 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(const uno::ReferenceGetErrorCode(); + ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ))->GetErrorCode(); } else { OSL_ENSURE( bMustBeSuccessfull, "Warnings are not supported" ); nReturn = (new StringErrorInfo( SCERR_IMPORT_FORMAT_ROWCOL, sErr, - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ))->GetErrorCode(); + ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ))->GetErrorCode(); } } } diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 9fe756c98ecb..1a7fc52e0857 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -2468,7 +2468,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) SetError((new StringErrorInfo( SCWARN_EXPORT_NONCONVERTIBLE_CHARS, aImExport.GetNonConvertibleChars(), - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageInfo))->GetErrorCode(), OSL_LOG_PREFIX); + ERRCODE_BUTTON_OK | ERRCODE_MSG_INFO))->GetErrorCode(), OSL_LOG_PREFIX); } } } diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 29aa6b85bed0..72dde819d5de 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -1090,10 +1090,10 @@ sal_uLong ScDocShell::DBaseExport( const OUString& rFullFileName, rtl_TextEncodi OUString sEncoding( SvxTextEncodingTable().GetTextString( eCharSet)); nErr = (new TwoStringErrorInfo( (bEncErr ? SCERR_EXPORT_ENCODING : SCERR_EXPORT_FIELDWIDTH), sPosition, sEncoding, - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError))->GetErrorCode(); + ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR))->GetErrorCode(); } else if ( !aException.Message.isEmpty() ) - nErr = (new StringErrorInfo( SCERR_EXPORT_SQLEXCEPTION, aException.Message, ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError))->GetErrorCode(); + nErr = (new StringErrorInfo( SCERR_EXPORT_SQLEXCEPTION, aException.Message, ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR))->GetErrorCode(); else nErr = SCERR_EXPORT_DATA; } -- cgit