1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24//i20156 - new file for xmlsecurity module
25
26#ifndef __com_sun_star_xml_csax_XCompressedDocumentHandler_idl__
27#define __com_sun_star_xml_csax_XCompressedDocumentHandler_idl__
28
29#include <com/sun/star/uno/XInterface.idl>
30#include <com/sun/star/xml/sax/SAXException.idl>
31
32
33module com { module sun { module star { module xml { module csax {
34
35/**
36 * A struct to keep information of an element's attribute.
37 */
38struct XMLAttribute
39{
40	/**
41	 * the attribute name
42	 */
43	string sName;
44
45	/**
46	 * the attribute value
47	 */
48	string sValue;
49};
50
51/**
52 * A compressed XDocumentHandler interface.
53 * <p>
54 * All methods in this interface have the same function with methods
55 * in the XDocumentHandler interface.
56 * <p>
57 * Because there is no interface parameter in these methods, so using
58 * this interface to transfer SAX event is thought to have better
59 * performance than using the XDocumentHandler interface, in case of
60 * when UNO C++/Java bridge is involved.
61 */
62interface XCompressedDocumentHandler: com::sun::star::uno::XInterface
63{
64	void _startDocument()
65		raises( com::sun::star::xml::sax::SAXException );
66
67	void _endDocument()
68		raises( com::sun::star::xml::sax::SAXException );
69
70	void _startElement( [in] string aName, [in] sequence< XMLAttribute > aAttributes)
71		raises( com::sun::star::xml::sax::SAXException );
72
73	void _endElement( [in] string aName )
74		raises( com::sun::star::xml::sax::SAXException );
75
76	void _characters( [in] string aChars )
77		raises( com::sun::star::xml::sax::SAXException );
78
79	void _ignorableWhitespace( [in] string aWhitespaces )
80		raises( com::sun::star::xml::sax::SAXException );
81
82	void _processingInstruction( [in] string aTarget, [in] string aData )
83		raises( com::sun::star::xml::sax::SAXException );
84
85	void _setDocumentLocator( [in] long columnNumber, [in] long lineNumber, [in] string publicId, [in] string systemId)
86		raises( com::sun::star::xml::sax::SAXException );
87
88};
89
90} ; } ; } ; } ; } ;
91
92#endif
93