diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-16 12:42:36 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-16 12:42:36 +0000 |
commit | 38dcec5ade0a290b7afa0527d0915016ab2ff024 (patch) | |
tree | 04148a5d3e65b788c005868058234a305c6e6491 /dbaccess/source/ui/misc/HtmlReader.cxx | |
parent | 03c839f0f3f823c93834cdc16ad071532caf36a2 (diff) |
#89650# check if table was created for html/rtf format
Diffstat (limited to 'dbaccess/source/ui/misc/HtmlReader.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/HtmlReader.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dbaccess/source/ui/misc/HtmlReader.cxx b/dbaccess/source/ui/misc/HtmlReader.cxx index 0de9a2ca4..86c5aa02d 100644 --- a/dbaccess/source/ui/misc/HtmlReader.cxx +++ b/dbaccess/source/ui/misc/HtmlReader.cxx @@ -2,9 +2,9 @@ * * $RCSfile: HtmlReader.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: oj $ $Date: 2001-07-05 12:19:25 $ + * last change: $Author: oj $ $Date: 2001-07-16 13:40:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -263,7 +263,8 @@ SvParserState OHTMLReader::CallParser() { rInput.Seek(STREAM_SEEK_TO_BEGIN); rInput.ResetError(); - return HTMLParser::CallParser(); + SvParserState eParseState = HTMLParser::CallParser(); + return m_bFoundTable ? eParseState : SVPAR_ERROR; } // ----------------------------------------------------------------------------- rtl_TextEncoding OHTMLReader::GetEncodingByMIME( const String& rMime ) @@ -646,7 +647,8 @@ sal_Bool OHTMLReader::CreateTable(int nToken) if(!aTableName.Len()) aTableName = aTempName; - m_bInTbl = sal_False; + m_bInTbl = sal_False; + m_bFoundTable = sal_True; sal_Bool bError = sal_False; OCopyTableWizard aWizard(NULL,aTableName,m_aDestColumns,m_vDestVector,m_xConnection,m_xFormatter,m_xFactory); |