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#include <com/sun/star/xml/csax/XMLAttribute.idl> 32 33 34module com { module sun { module star { module xml { module csax { 35 36/** 37 * A compressed XDocumentHandler interface. 38 * <p> 39 * All methods in this interface have the same function with methods 40 * in the XDocumentHandler interface. 41 * <p> 42 * Because there is no interface parameter in these methods, so using 43 * this interface to transfer SAX event is thought to have better 44 * performance than using the XDocumentHandler interface, in case of 45 * when UNO C++/Java bridge is involved. 46 */ 47interface XCompressedDocumentHandler: com::sun::star::uno::XInterface 48{ 49 void _startDocument() 50 raises( com::sun::star::xml::sax::SAXException ); 51 52 void _endDocument() 53 raises( com::sun::star::xml::sax::SAXException ); 54 55 void _startElement( [in] string aName, [in] sequence< XMLAttribute > aAttributes) 56 raises( com::sun::star::xml::sax::SAXException ); 57 58 void _endElement( [in] string aName ) 59 raises( com::sun::star::xml::sax::SAXException ); 60 61 void _characters( [in] string aChars ) 62 raises( com::sun::star::xml::sax::SAXException ); 63 64 void _ignorableWhitespace( [in] string aWhitespaces ) 65 raises( com::sun::star::xml::sax::SAXException ); 66 67 void _processingInstruction( [in] string aTarget, [in] string aData ) 68 raises( com::sun::star::xml::sax::SAXException ); 69 70 void _setDocumentLocator( [in] long columnNumber, [in] long lineNumber, [in] string publicId, [in] string systemId) 71 raises( com::sun::star::xml::sax::SAXException ); 72 73}; 74 75} ; } ; } ; } ; } ; 76 77#endif 78