diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-09-24 13:33:45 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-09-24 13:33:45 +0000 |
commit | edf81cdbcd42e7da18dadf16d736d0ee4804f990 (patch) | |
tree | 74145906fcabffbf8d1b0099982d1b87b6137a60 /xmloff | |
parent | 8d04458b48e811754c1acc131424744c6b793030 (diff) |
#91636# new method for improved error handling
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 30760a5b88f5..e6b740625bc7 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlexp.cxx,v $ * - * $Revision: 1.82 $ + * $Revision: 1.83 $ * - * last change: $Author: dvo $ $Date: 2001-09-18 17:33:48 $ + * last change: $Author: dvo $ $Date: 2001-09-24 14:33:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1587,7 +1587,7 @@ void SvXMLExport::Characters(const ::rtl::OUString& rChars) } catch ( SAXException& e ) { - Sequence<OUString> aPars(0); + Sequence<OUString> aPars(1); aPars[0] = rChars; SetError( XMLERROR_SAX|XMLERROR_FLAG_ERROR|XMLERROR_FLAG_SEVERE, aPars, e.Message, NULL ); @@ -1623,6 +1623,24 @@ void SvXMLExport::EndElement(const OUString& rName, } } +void SvXMLExport::IgnorableWhitespace() +{ + if ((mnErrorFlags & ERROR_DO_NOTHING) != ERROR_DO_NOTHING) + { + try + { + xHandler->ignorableWhitespace( sWS ); + } + catch ( SAXException& e ) + { + Sequence<OUString> aPars(0); + SetError( XMLERROR_SAX|XMLERROR_FLAG_ERROR|XMLERROR_FLAG_SEVERE, + aPars, e.Message, NULL ); + } + } +} + + void SvXMLExport::SetError( sal_Int32 nId, const Sequence<OUString>& rMsgParams, |