1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile: XFastSerializer.idl,v $
9 * last change: $Author: rt $ $Date: 2005/09/08 10:12:27 $
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
34 ************************************************************************/
35 #ifndef __com_sun_star_xml_sax_XFastSerializer_idl__
36 #define __com_sun_star_xml_sax_XFastSerializer_idl__
38 #ifndef __com_sun_star_uno_XInterface_idl__
39 #include
<com
/sun
/star
/uno
/XInterface.idl
>
42 #ifndef __com_sun_star_xml_sax_SAXException_idl__
43 #include
<com
/sun
/star
/xml
/sax
/SAXException.idl
>
46 #ifndef __com_sun_star_xml_sax_XFastDocumentHanlder_idl__
47 #include
<com
/sun
/star
/xml
/sax
/XFastDocumentHandler.idl
>
50 #ifndef __com_sun_star_io_XOutputStream_idl__
51 #include
<com
/sun
/star
/io
/XOutputStream.idl
>
54 #ifndef __com_sun_star_xml_sax_XFastTokenHandler_idl__
55 #include
<com
/sun
/star
/xml
/sax
/XFastTokenHandler.idl
>
59 //=============================================================================
61 module com
{ module sun
{ module star
{ module xml
{ module sax
{
63 //=============================================================================
65 /** receives notification of sax document events to write into an XOutputStream.
67 interface XFastSerializer
: com
::sun
::star
::uno
::XInterface
69 //-------------------------------------------------------------------------
71 /** called by the parser when parsing of an xml stream is started.
74 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
76 //-------------------------------------------------------------------------
78 /** called by the parser after the last xml element of a stream is processed.
81 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
83 //-------------------------------------------------------------------------
85 /** receives notification of the beginning of an element .
88 contains the integer token from the <type>XFastTokenHandler</type>
89 registered at the <type>XFastParser</type>.<br>
91 If the element has a namespace that was registered with the
92 <type>XFastParser</type>, <param>Element</param> contains the integer
93 token of the elements local name from the <type>XFastTokenHandler</type>
94 and the integer token of the namespace combined with an arithmetic
98 Contains a <type>XFastAttrbitueList</type> to access the attributes
102 void startFastElement
( [in] long Element
, [in] XFastAttributeList Attribs
)
103 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
105 //-------------------------------------------------------------------------
107 /** receives notification of the beginning of an unknown element .
110 contains the namespace url (not the prefix!) of this element.
112 contains the elements local name.
114 Contains a <type>XFastAttrbitueList</type> to access the attributes
117 void startUnknownElement
( [in] string Namespace
, [in] string Name
, [in] XFastAttributeList Attribs
)
118 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
120 //-------------------------------------------------------------------------
122 /** receives notification of the end of an known element.
123 @see startFastElement
125 void endFastElement
( [in] long Element
)
126 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
128 //-------------------------------------------------------------------------
130 /** receives notification of the end of an known element.
131 @see startUnknownElement
133 void endUnknownElement
( [in] string Namespace
, [in] string Name
)
134 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
136 //-------------------------------------------------------------------------
138 /** receives notification of the beginning of a single element .
141 contains the integer token from the <type>XFastTokenHandler</type>
142 registered at the <type>XFastParser</type>.<br>
144 If the element has a namespace that was registered with the
145 <type>XFastParser</type>, <param>Element</param> contains the integer
146 token of the elements local name from the <type>XFastTokenHandler</type>
147 and the integer token of the namespace combined with an arithmetic
151 Contains a <type>XFastAttrbitueList</type> to access the attributes
155 void singleFastElement
( [in] long Element
, [in] XFastAttributeList Attribs
)
156 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
158 //-------------------------------------------------------------------------
160 /** receives notification of the beginning of a single unknown element .
163 contains the namespace url (not the prefix!) of this element.
165 contains the elements local name.
167 Contains a <type>XFastAttrbitueList</type> to access the attributes
170 void singleUnknownElement
( [in] string Namespace
, [in] string Name
, [in] XFastAttributeList Attribs
)
171 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
173 //-------------------------------------------------------------------------
175 /** receives notification of character data.
177 void characters
( [in] string aChars
)
178 raises
( com
::sun
::star
::xml
::sax
::SAXException
);
180 //-------------------------------------------------------------------------
184 void setOutputStream
( [in] com
::sun
::star
::io
::XOutputStream xOutputStream
)
185 /* raises( com::sun::star::xml::sax::SAXException ) */;
187 //-------------------------------------------------------------------------
191 void setFastTokenHandler
( [in] com
::sun
::star
::xml
::sax
::XFastTokenHandler xFastTokenHandler
)
192 /* raises( com::sun::star::xml::sax::SAXException ) */;
195 //=============================================================================