User: obo Date: 06/01/19 07:43:26 Modified: /dba/dbaccess/source/ui/misc/ HtmlReader.cxx
Log: INTEGRATION: CWS dba202e (1.20.56); FILE MERGED 2006/01/03 09:43:27 oj 1.20.56.1: #i59833# exception caught File Changes: Directory: /dba/dbaccess/source/ui/misc/ ======================================== File [changed]: HtmlReader.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/HtmlReader.cxx?r1=1.21&r2=1.22 Delta lines: +12 -33 --------------------- --- HtmlReader.cxx 16 Jan 2006 15:28:53 -0000 1.21 +++ HtmlReader.cxx 19 Jan 2006 15:43:23 -0000 1.22 @@ -98,12 +98,6 @@ #ifndef _HTMLKYWD_HXX #include <svtools/htmlkywd.hxx> #endif -#ifndef _DBAUI_SQLMESSAGE_HXX_ -#include "sqlmessage.hxx" -#endif -#ifndef _SV_MSGBOX_HXX -#include <vcl/msgbox.hxx> -#endif #ifndef _TOOLS_COLOR_HXX #include <tools/color.hxx> #endif @@ -246,6 +240,7 @@ rInput.Seek(STREAM_SEEK_TO_BEGIN); rInput.ResetError(); SvParserState eParseState = HTMLParser::CallParser(); + SetColumnTypes(m_pColumnList,m_pInfoMap); return m_bFoundTable ? eParseState : SVPAR_ERROR; } // ----------------------------------------------------------------------------- @@ -321,19 +316,7 @@ catch(SQLException& e) // UpdateFehlerbehandlung { - if(!m_bDontAskAgain) - { - String aMsg(e.Message); - aMsg += '\n'; - aMsg += String(ModuleRes(STR_QRY_CONTINUE)); - OSQLMessageBox aBox(NULL, String(ModuleRes(STR_STAT_WARNING)), - aMsg, WB_YES_NO | WB_DEF_NO, OSQLMessageBox::Warning); - - if (aBox.Execute() == RET_YES) - m_bDontAskAgain = TRUE; - else - m_bError = TRUE; - } + showErrorDialog(e); } } else @@ -372,7 +355,15 @@ break; case HTML_TABLEDATA_OFF: { + try + { insertValueIntoColumn(); + } + catch(SQLException& e) + // UpdateFehlerbehandlung + { + showErrorDialog(e); + } m_nColumnPos++; m_sTextToken.Erase(); m_bSDNum = m_bInTbl = sal_False; @@ -395,19 +386,7 @@ ////////////////////////////////////////////////////////////////////// // UpdateFehlerbehandlung { - if(!m_bDontAskAgain) - { - String aMsg(e.Message); - aMsg += '\n'; - aMsg += String(ModuleRes(STR_QRY_CONTINUE)); - OSQLMessageBox aBox(NULL, String(ModuleRes(STR_STAT_WARNING)), - aMsg, WB_YES_NO | WB_DEF_NO, OSQLMessageBox::Warning); - - if (aBox.Execute() == RET_YES) - m_bDontAskAgain = TRUE; - else - m_bError = TRUE; - } + showErrorDialog(e); } m_nColumnPos = 0; break; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
