1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XFastContextHandler.idl,v $
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
>
37 #ifndef __com_sun_star_xml_sax_SAXException_idl__
38 #include
<com
/sun
/star
/xml
/sax
/SAXException.idl
>
41 #ifndef __com_sun_star_xml_sax_XFastAttributeList_idl__
42 #include
<com
/sun
/star
/xml
/sax
/XFastAttributeList.idl
>
45 #ifndef __com_sun_star_xml_sax_XLocator_idl__
46 #include
<com
/sun
/star
/xml
/sax
/XLocator.idl
>
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 .
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
78 Contains a <type>XFastAttrbitueList</type> to access the attributes
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 .
90 contains the namespace url (not the prefix!) of this element.
92 contains the elements local name.
94 Contains a <type>XFastAttrbitueList</type> to access the attributes
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.
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.
131 Contains a <type>XFastAttrbitueList</type> to access the attributes
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 .
142 contains the namespace url (not the prefix!) of this element.
144 contains the elements local name.
146 Contains a <type>XFastAttrbitueList</type> to access the attributes
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 //=============================================================================