diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-04-17 09:37:31 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-04-25 23:27:56 +0200 |
commit | 41f5c11c3b5f5b57f480dd809b850fe563b53691 (patch) | |
tree | df139718c1c5249de728e697b6aea74152874fe0 /sw/source | |
parent | c67a0d0f7ddd8ababa3197d86998979c1ce725d0 (diff) |
vcl: change ErrorHandlerFlags to DialogMask
Change-Id: I1959ac97f679d8d719f851f9869962b39a20ded9
Reviewed-on: https://gerrit.libreoffice.org/36841
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 20 | ||||
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/xml/swxml.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/xml/wrtxml.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/misc/glosdoc.cxx | 4 |
5 files changed, 17 insertions, 17 deletions
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx index cafafbbaeac2..62e84aaeef01 100644 --- a/sw/source/core/frmedt/fetab.cxx +++ b/sw/source/core/frmedt/fetab.cxx @@ -190,7 +190,7 @@ bool SwFEShell::InsertRow( sal_uInt16 nCnt, bool bBehind ) if( dynamic_cast< const SwDDETable* >(pFrame->ImplFindTabFrame()->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } @@ -231,7 +231,7 @@ bool SwFEShell::InsertCol( sal_uInt16 nCnt, bool bBehind ) if( dynamic_cast< const SwDDETable* >(pFrame->ImplFindTabFrame()->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } @@ -240,7 +240,7 @@ bool SwFEShell::InsertCol( sal_uInt16 nCnt, bool bBehind ) if( !CheckSplitCells( *this, nCnt + 1, SwTableSearchType::Col ) ) { ErrorHandler::HandleError( ERR_TBLINSCOL_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } @@ -286,7 +286,7 @@ bool SwFEShell::DeleteCol() if( dynamic_cast< const SwDDETable* >(pFrame->ImplFindTabFrame()->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } @@ -337,7 +337,7 @@ bool SwFEShell::DeleteRow(bool bCompleteTable) if( dynamic_cast< const SwDDETable* >(pFrame->ImplFindTabFrame()->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } @@ -456,7 +456,7 @@ TableMergeErr SwFEShell::MergeTab() if( dynamic_cast< const SwDDETable* >(&pTableNd->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); } else { @@ -487,7 +487,7 @@ bool SwFEShell::SplitTab( bool bVert, sal_uInt16 nCnt, bool bSameHeight ) if( dynamic_cast< const SwDDETable* >(pFrame->ImplFindTabFrame()->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } @@ -496,7 +496,7 @@ bool SwFEShell::SplitTab( bool bVert, sal_uInt16 nCnt, bool bSameHeight ) if( bVert && !CheckSplitCells( *this, nCnt + 1 ) ) { ErrorHandler::HandleError( ERR_TBLSPLIT_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } StartAllAction(); @@ -1296,7 +1296,7 @@ bool SwFEShell::DeleteTableSel() if( dynamic_cast< const SwDDETable* >(pFrame->ImplFindTabFrame()->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } @@ -2162,7 +2162,7 @@ bool SwFEShell::SetColRowWidthHeight( TableChgWidthHeightType eType, sal_uInt16 dynamic_cast< const SwDDETable* >(pFrame->ImplFindTabFrame()->GetTable()) != nullptr ) { ErrorHandler::HandleError( ERR_TBLDDECHG_ERROR, - ErrorHandlerFlags::MessageInfo | ErrorHandlerFlags::ButtonDefaultsOk ); + DialogMask::MessageInfo | DialogMask::ButtonDefaultsOk ); return false; } diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index d77eee22f65f..ab05fa5a59b3 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -229,7 +229,7 @@ sal_uLong HTMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPam, // den Stream als Fehlernummer Transporter benutzen nRet = *new StringErrorInfo( ERR_FORMAT_ROWCOL, sErr, - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ); + DialogMask::ButtonsOk | DialogMask::MessageError ); } return nRet; diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx index a61948552c06..4daf020f83e6 100644 --- a/sw/source/filter/xml/swxml.cxx +++ b/sw/source/filter/xml/swxml.cxx @@ -211,13 +211,13 @@ sal_Int32 ReadThroughComponent( (bMustBeSuccessfull ? ERR_FORMAT_FILE_ROWCOL : WARN_FORMAT_FILE_ROWCOL), rStreamName, sErr, - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ); + DialogMask::ButtonsOk | DialogMask::MessageError ); } else { OSL_ENSURE( bMustBeSuccessfull, "Warnings are not supported" ); return *new StringErrorInfo( ERR_FORMAT_ROWCOL, sErr, - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ); + DialogMask::ButtonsOk | DialogMask::MessageError ); } } catch(const xml::sax::SAXException& r) diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index 7e3658adacb1..fcaeea8fcf09 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -415,14 +415,14 @@ sal_uInt32 SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& { if( !sErrFile.isEmpty() ) return *new StringErrorInfo( ERR_WRITE_ERROR_FILE, sErrFile, - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ); + DialogMask::ButtonsOk | DialogMask::MessageError ); return ERR_SWG_WRITE_ERROR; } else if( bWarn ) { if( !sWarnFile.isEmpty() ) return *new StringErrorInfo( WARN_WRITE_ERROR_FILE, sWarnFile, - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ); + DialogMask::ButtonsOk | DialogMask::MessageError ); return WARN_SWG_FEATURES_LOST; } diff --git a/sw/source/uibase/misc/glosdoc.cxx b/sw/source/uibase/misc/glosdoc.cxx index 42a7d5b0bddd..cc7fe903235d 100644 --- a/sw/source/uibase/misc/glosdoc.cxx +++ b/sw/source/uibase/misc/glosdoc.cxx @@ -400,7 +400,7 @@ void SwGlossaries::UpdateGlosPath(bool bFull) ErrorHandler::HandleError( *new StringErrorInfo( ERR_AUTOPATH_ERROR, lcl_makePath(m_aInvalidPaths), - ErrorHandlerFlags::ButtonsOk | ErrorHandlerFlags::MessageError ) ); + DialogMask::ButtonsOk | DialogMask::MessageError ) ); m_bError = true; } else @@ -420,7 +420,7 @@ void SwGlossaries::UpdateGlosPath(bool bFull) void SwGlossaries::ShowError() { sal_uInt32 nPathError = *new StringErrorInfo(ERR_AUTOPATH_ERROR, - lcl_makePath(m_aInvalidPaths), ErrorHandlerFlags::ButtonsOk ); + lcl_makePath(m_aInvalidPaths), DialogMask::ButtonsOk ); ErrorHandler::HandleError( nPathError ); } |