20#ifndef INCLUDED_XMLOFF_XMLERROR_HXX
21#define INCLUDED_XMLOFF_XMLERROR_HXX
24#include <rtl/ustring.hxx>
30#define XMLERROR_MASK_FLAG 0xF0000000
31#define XMLERROR_MASK_CLASS 0x00FF0000
32#define XMLERROR_MASK_NUMBER 0x0000FFFF
35#define XMLERROR_FLAG_WARNING 0x10000000
36#define XMLERROR_FLAG_ERROR 0x20000000
37#define XMLERROR_FLAG_SEVERE 0x40000000
40#define XMLERROR_CLASS_IO 0x00010000
41#define XMLERROR_CLASS_FORMAT 0x00020000
42#define XMLERROR_CLASS_API 0x00040000
43#define XMLERROR_CLASS_OTHER 0x00080000
52#define XMLERROR_SAX ( XMLERROR_CLASS_FORMAT | 0x00000001 )
53#define XMLERROR_STYLE_ATTR_VALUE ( XMLERROR_CLASS_FORMAT | 0x00000002 )
54#define XMLERROR_NO_INDEX_ALLOWED_HERE ( XMLERROR_CLASS_FORMAT | 0x00000003 )
55#define XMLERROR_PARENT_STYLE_NOT_ALLOWED ( XMLERROR_CLASS_FORMAT | 0x00000004 )
56#define XMLERROR_ILLEGAL_EVENT (XMLERROR_CLASS_FORMAT | 0x00000005 )
57#define XMLERROR_NAMESPACE_TROUBLE (XMLERROR_CLASS_FORMAT | 0x00000006 )
59#define XMLERROR_XFORMS_NO_SCHEMA_SUPPORT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x00000007 )
60#define XMLERROR_XFORMS_UNKNOWN ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x00000008 )
61#define XMLERROR_XFORMS_ONLY_ONE_INSTANCE_ELEMENT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x00000009 )
62#define XMLERROR_UNKNOWN_ATTRIBUTE ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000a )
63#define XMLERROR_UNKNOWN_ELEMENT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000b )
64#define XMLERROR_UNKNOWN_CHARACTERS ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000c )
65#define XMLERROR_UNKNOWN_ROOT (XMLERROR_CLASS_FORMAT | 0x0000000d )
68#define XMLERROR_STYLE_PROP_VALUE ( XMLERROR_CLASS_API | 0x00000001 )
69#define XMLERROR_STYLE_PROP_UNKNOWN ( XMLERROR_CLASS_API | 0x00000002 )
70#define XMLERROR_STYLE_PROP_OTHER ( XMLERROR_CLASS_API | 0x00000003 )
71#define XMLERROR_API ( XMLERROR_CLASS_API | 0x00000004 )
74#define XMLERROR_CANCEL ( XMLERROR_CLASS_OTHER | 0x00000001 )
93 namespace xml::sax {
class XLocator; }
117 const css::uno::Sequence< OUString> & rParams,
118 const OUString& rExceptionMessage,
121 const OUString& rPublicId,
122 const OUString& rSystemId );
126 const css::uno::Sequence<OUString> & rParams,
127 const OUString& rExceptionMessage,
128 const css::uno::Reference<css::xml::sax::XLocator> & rLocator);
ErrorRecord: contains all information for one error.
The XMLErrors is used to collect all errors and warnings that occur for appropriate processing.
XMLErrors()
list of error records
void ThrowErrorAsSAXException(sal_Int32 nIdMask)
location
void AddRecord(sal_Int32 nId, const css::uno::Sequence< OUString > &rParams, const OUString &rExceptionMessage, const css::uno::Reference< css::xml::sax::XLocator > &rLocator)
XLocator: file system ID.
::std::vector< ErrorRecord > ErrorList
definition of type for error list
void AddRecord(sal_Int32 nId, const css::uno::Sequence< OUString > &rParams, const OUString &rExceptionMessage, sal_Int32 nRow, sal_Int32 nColumn, const OUString &rPublicId, const OUString &rSystemId)
add a new entry to the list of error messages