merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / xml / sax / XFastContextHandler.idl
blobccdf7b6f878cef2018d0d345cb3e503e39ac5690
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XFastContextHandler.idl,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_xml_sax_XFastContextHandler_idl__
31 #define __com_sun_star_xml_sax_XFastContextHandler_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 #ifndef __com_sun_star_xml_sax_SAXException_idl__
38 #include <com/sun/star/xml/sax/SAXException.idl>
39 #endif
41 #ifndef __com_sun_star_xml_sax_XFastAttributeList_idl__
42 #include <com/sun/star/xml/sax/XFastAttributeList.idl>
43 #endif
45 #ifndef __com_sun_star_xml_sax_XLocator_idl__
46 #include <com/sun/star/xml/sax/XLocator.idl>
47 #endif
50 //=============================================================================
52 module com { module sun { module star { module xml { module sax {
54 //=============================================================================
56 /** receives notification of sax document events from a
57 <type>XFastParser</type>.
59 @see XFastDocumentHandler
61 interface XFastContextHandler: com::sun::star::uno::XInterface
63 //-------------------------------------------------------------------------
65 /** receives notification of the beginning of an element .
67 @param Element
68 contains the integer token from the <type>XFastTokenHandler</type>
69 registered at the <type>XFastParser</type>.<br>
71 If the element has a namespace that was registered with the
72 <type>XFastParser</type>, <param>Element</param> contains the integer
73 token of the elements local name from the <type>XFastTokenHandler</type>
74 and the integer token of the namespace combined with an arithmetic
75 <b>or</b> operation.
77 @param Attribs
78 Contains a <type>XFastAttrbitueList</type> to access the attributes
79 from the element.
82 void startFastElement( [in] long Element, [in] XFastAttributeList Attribs )
83 raises( com::sun::star::xml::sax::SAXException );
85 //-------------------------------------------------------------------------
87 /** receives notification of the beginning of an unknown element .
89 @param Namespace
90 contains the namespace url (not the prefix!) of this element.
91 @param Name
92 contains the elements local name.
93 @param Attribs
94 Contains a <type>XFastAttrbitueList</type> to access the attributes
95 from the element.
97 void startUnknownElement( [in] string Namespace, [in] string Name, [in] XFastAttributeList Attribs )
98 raises( com::sun::star::xml::sax::SAXException );
100 //-------------------------------------------------------------------------
102 /** receives notification of the end of an known element.
103 @see startFastElement
105 void endFastElement( [in] long Element )
106 raises( com::sun::star::xml::sax::SAXException );
108 //-------------------------------------------------------------------------
110 /** receives notification of the end of an kown element.
111 @see startUnknownElement
113 void endUnknownElement( [in] string Namespace, [in] string Name )
114 raises( com::sun::star::xml::sax::SAXException );
116 //-------------------------------------------------------------------------
118 /** receives notification of the beginning of a known child element.
120 @param Element
121 contains the integer token from the <type>XFastTokenHandler</type>
122 registered at the <type>XFastParser</type>.
124 <br>If the element has a namespace that was registered with the
125 <type>XFastParser</type>, <param>Element</param> contains the
126 integer token of the elements local name from the
127 <type>XFastTokenHandler</type> and the integer token of the
128 namespace combined with an arithmetic <b>or</b> operation.
130 @param Attribs
131 Contains a <type>XFastAttrbitueList</type> to access the attributes
132 from the element.
134 XFastContextHandler createFastChildContext( [in] long Element, [in] XFastAttributeList Attribs )
135 raises( com::sun::star::xml::sax::SAXException );
137 //-------------------------------------------------------------------------
139 /** receives notification of the beginning of a unknown child element .
141 @param Namespace
142 contains the namespace url (not the prefix!) of this element.
143 @param Name
144 contains the elements local name.
145 @param Attribs
146 Contains a <type>XFastAttrbitueList</type> to access the attributes
147 the element.
149 XFastContextHandler createUnknownChildContext( [in] string Namespace, [in] string Name, [in] XFastAttributeList Attribs )
150 raises( com::sun::star::xml::sax::SAXException );
152 //-------------------------------------------------------------------------
154 /** receives notification of character data.
156 void characters( [in] string aChars )
157 raises( com::sun::star::xml::sax::SAXException );
160 //=============================================================================
162 }; }; }; }; };
164 #endif