1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module xml
{ module sax
{
25 /** specifies a SAX parser.
27 <p>This interface is an IDL version of the Java interface
28 <em>org.xml.sax.Parser</em> with some minor adaptations.</p>
30 published
interface XParser
: com
::sun
::star
::uno
::XInterface
32 /** parses an XML document from a stream.
34 <p>Set the desired handlers before calling this method.</p>
36 void parseStream
( [in] com
::sun
::star
::xml
::sax
::InputSource aInputSource
)
37 raises
( com
::sun
::star
::xml
::sax
::SAXException
,
38 com
::sun
::star
::io
::IOException
);
40 /** allows an application to register a document event handler.
42 void setDocumentHandler
( [in] com
::sun
::star
::xml
::sax
::XDocumentHandler xHandler
);
44 /** allows an application to register an error event handler.
46 <p>Note that the error handler can throw an exception when an error or
47 warning occurs. Note that an exception is thrown by the parser when
48 an unrecoverable (fatal) error occurs.</p>
50 void setErrorHandler
( [in] com
::sun
::star
::xml
::sax
::XErrorHandler xHandler
);
52 /** allows an application to register a DTD-Handler.
54 void setDTDHandler
( [in] com
::sun
::star
::xml
::sax
::XDTDHandler xHandler
);
56 /** allows an application to register a DTD-Handler.
58 void setEntityResolver
( [in] com
::sun
::star
::xml
::sax
::XEntityResolver xResolver
);
60 /** sets a locale specified for localization of warnings and error messages.
62 <p>Set the language of the error messages. Useful when the parsing
63 errors will be presented to the user.</p>
65 void setLocale
( [in] com
::sun
::star
::lang
::Locale locale
);
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */