xref: /AOO41X/main/unoxml/source/dom/document.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef DOM_DOCUMENT_HXX
29*cdf0e10cSrcweir #define DOM_DOCUMENT_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <set>
32*cdf0e10cSrcweir #include <memory>
33*cdf0e10cSrcweir 
34*cdf0e10cSrcweir #include <libxml/tree.h>
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir #include <sal/types.h>
37*cdf0e10cSrcweir 
38*cdf0e10cSrcweir #include <cppuhelper/implbase6.hxx>
39*cdf0e10cSrcweir 
40*cdf0e10cSrcweir #include <com/sun/star/uno/Reference.h>
41*cdf0e10cSrcweir #include <com/sun/star/beans/StringPair.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/xml/dom/XNode.hpp>
43*cdf0e10cSrcweir #include <com/sun/star/xml/dom/XAttr.hpp>
44*cdf0e10cSrcweir #include <com/sun/star/xml/dom/XElement.hpp>
45*cdf0e10cSrcweir #include <com/sun/star/xml/dom/XDOMImplementation.hpp>
46*cdf0e10cSrcweir #include <com/sun/star/xml/dom/events/XDocumentEvent.hpp>
47*cdf0e10cSrcweir #include <com/sun/star/xml/dom/events/XEvent.hpp>
48*cdf0e10cSrcweir #include <com/sun/star/xml/sax/XSAXSerializable.hpp>
49*cdf0e10cSrcweir #include <com/sun/star/xml/sax/XFastSAXSerializable.hpp>
50*cdf0e10cSrcweir #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
51*cdf0e10cSrcweir #include <com/sun/star/xml/sax/XFastDocumentHandler.hpp>
52*cdf0e10cSrcweir #include <com/sun/star/io/XActiveDataSource.hpp>
53*cdf0e10cSrcweir #include <com/sun/star/io/XActiveDataControl.hpp>
54*cdf0e10cSrcweir #include <com/sun/star/io/XOutputStream.hpp>
55*cdf0e10cSrcweir #include <com/sun/star/io/XStreamListener.hpp>
56*cdf0e10cSrcweir 
57*cdf0e10cSrcweir #include "node.hxx"
58*cdf0e10cSrcweir 
59*cdf0e10cSrcweir 
60*cdf0e10cSrcweir using namespace std;
61*cdf0e10cSrcweir using ::rtl::OUString;
62*cdf0e10cSrcweir using namespace com::sun::star;
63*cdf0e10cSrcweir using namespace com::sun::star::uno;
64*cdf0e10cSrcweir using namespace com::sun::star::xml::sax;
65*cdf0e10cSrcweir using namespace com::sun::star::io;
66*cdf0e10cSrcweir using namespace com::sun::star::xml::dom;
67*cdf0e10cSrcweir using namespace com::sun::star::xml::dom::events;
68*cdf0e10cSrcweir 
69*cdf0e10cSrcweir namespace DOM
70*cdf0e10cSrcweir {
71*cdf0e10cSrcweir     namespace events {
72*cdf0e10cSrcweir         class CEventDispatcher;
73*cdf0e10cSrcweir     }
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir     class CElement;
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir     typedef ::cppu::ImplInheritanceHelper6<
78*cdf0e10cSrcweir             CNode, XDocument, XDocumentEvent,
79*cdf0e10cSrcweir             XActiveDataControl, XActiveDataSource,
80*cdf0e10cSrcweir             XSAXSerializable, XFastSAXSerializable>
81*cdf0e10cSrcweir         CDocument_Base;
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir     class CDocument
84*cdf0e10cSrcweir         : public CDocument_Base
85*cdf0e10cSrcweir     {
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir     private:
88*cdf0e10cSrcweir         /// this Mutex is used for synchronization of all UNO wrapper
89*cdf0e10cSrcweir         /// objects that belong to this document
90*cdf0e10cSrcweir         ::osl::Mutex m_Mutex;
91*cdf0e10cSrcweir         /// the libxml document: freed in destructor
92*cdf0e10cSrcweir         /// => all UNO wrapper objects must keep the CDocument alive
93*cdf0e10cSrcweir         xmlDocPtr const m_aDocPtr;
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir 		// datacontrol/source state
96*cdf0e10cSrcweir         typedef set< Reference< XStreamListener > > listenerlist_t;
97*cdf0e10cSrcweir 		listenerlist_t m_streamListeners;
98*cdf0e10cSrcweir 		Reference< XOutputStream > m_rOutputStream;
99*cdf0e10cSrcweir 
100*cdf0e10cSrcweir         typedef std::map< const xmlNodePtr,
101*cdf0e10cSrcweir                     ::std::pair< WeakReference<XNode>, CNode* > > nodemap_t;
102*cdf0e10cSrcweir         nodemap_t m_NodeMap;
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir         ::std::auto_ptr<events::CEventDispatcher> const m_pEventDispatcher;
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir         CDocument(xmlDocPtr const pDocPtr);
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir 
109*cdf0e10cSrcweir     public:
110*cdf0e10cSrcweir         /// factory: only way to create instance!
111*cdf0e10cSrcweir         static ::rtl::Reference<CDocument>
112*cdf0e10cSrcweir             CreateCDocument(xmlDocPtr const pDoc);
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir         virtual ~CDocument();
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir         // needed by CXPathAPI
117*cdf0e10cSrcweir         ::osl::Mutex & GetMutex() { return m_Mutex; }
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir         events::CEventDispatcher & GetEventDispatcher();
120*cdf0e10cSrcweir         ::rtl::Reference< CElement > GetDocumentElement();
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir         /// get UNO wrapper instance for a libxml node
123*cdf0e10cSrcweir         ::rtl::Reference<CNode> GetCNode(
124*cdf0e10cSrcweir                 xmlNodePtr const pNode, bool const bCreate = true);
125*cdf0e10cSrcweir         /// remove a UNO wrapper instance
126*cdf0e10cSrcweir         void RemoveCNode(xmlNodePtr const pNode, CNode const*const pCNode);
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir         virtual CDocument & GetOwnerDocument();
129*cdf0e10cSrcweir 
130*cdf0e10cSrcweir         virtual void saxify(const Reference< XDocumentHandler >& i_xHandler);
131*cdf0e10cSrcweir 
132*cdf0e10cSrcweir         virtual void fastSaxify( Context& rContext );
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir         virtual bool IsChildTypeAllowed(NodeType const nodeType);
135*cdf0e10cSrcweir 
136*cdf0e10cSrcweir         /**
137*cdf0e10cSrcweir         Creates an Attr of the given name.
138*cdf0e10cSrcweir         */
139*cdf0e10cSrcweir         virtual Reference< XAttr > SAL_CALL createAttribute(const OUString& name)
140*cdf0e10cSrcweir             throw (RuntimeException, DOMException);
141*cdf0e10cSrcweir 
142*cdf0e10cSrcweir         /**
143*cdf0e10cSrcweir         Creates an attribute of the given qualified name and namespace URI.
144*cdf0e10cSrcweir         */
145*cdf0e10cSrcweir         virtual Reference< XAttr > SAL_CALL createAttributeNS(const OUString& namespaceURI, const OUString& qualifiedName)
146*cdf0e10cSrcweir             throw (RuntimeException, DOMException);
147*cdf0e10cSrcweir 
148*cdf0e10cSrcweir         /**
149*cdf0e10cSrcweir         Creates a CDATASection node whose value is the specified string.
150*cdf0e10cSrcweir         */
151*cdf0e10cSrcweir         virtual Reference< XCDATASection > SAL_CALL createCDATASection(const OUString& data)
152*cdf0e10cSrcweir             throw (RuntimeException);
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir         /**
155*cdf0e10cSrcweir         Creates a Comment node given the specified string.
156*cdf0e10cSrcweir         */
157*cdf0e10cSrcweir         virtual Reference< XComment > SAL_CALL createComment(const OUString& data)
158*cdf0e10cSrcweir             throw (RuntimeException);
159*cdf0e10cSrcweir 
160*cdf0e10cSrcweir         /**
161*cdf0e10cSrcweir         Creates an empty DocumentFragment object.
162*cdf0e10cSrcweir         */
163*cdf0e10cSrcweir         virtual Reference< XDocumentFragment > SAL_CALL createDocumentFragment()
164*cdf0e10cSrcweir             throw (RuntimeException);
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir         /**
167*cdf0e10cSrcweir         Creates an element of the type specified.
168*cdf0e10cSrcweir         */
169*cdf0e10cSrcweir         virtual Reference< XElement > SAL_CALL createElement(const OUString& tagName)
170*cdf0e10cSrcweir             throw (RuntimeException, DOMException);
171*cdf0e10cSrcweir 
172*cdf0e10cSrcweir         /**
173*cdf0e10cSrcweir         Creates an element of the given qualified name and namespace URI.
174*cdf0e10cSrcweir         */
175*cdf0e10cSrcweir         virtual Reference< XElement > SAL_CALL createElementNS(const OUString& namespaceURI, const OUString& qualifiedName)
176*cdf0e10cSrcweir             throw (RuntimeException, DOMException);
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir         /**
179*cdf0e10cSrcweir         Creates an EntityReference object.
180*cdf0e10cSrcweir         */
181*cdf0e10cSrcweir         virtual Reference< XEntityReference > SAL_CALL createEntityReference(const OUString& name)
182*cdf0e10cSrcweir             throw (RuntimeException, DOMException);
183*cdf0e10cSrcweir 
184*cdf0e10cSrcweir         /**
185*cdf0e10cSrcweir         Creates a ProcessingInstruction node given the specified name and
186*cdf0e10cSrcweir         data strings.
187*cdf0e10cSrcweir         */
188*cdf0e10cSrcweir         virtual Reference< XProcessingInstruction > SAL_CALL createProcessingInstruction(
189*cdf0e10cSrcweir                 const OUString& target, const OUString& data)
190*cdf0e10cSrcweir             throw (RuntimeException, DOMException);
191*cdf0e10cSrcweir 
192*cdf0e10cSrcweir         /**
193*cdf0e10cSrcweir         Creates a Text node given the specified string.
194*cdf0e10cSrcweir         */
195*cdf0e10cSrcweir         virtual Reference< XText > SAL_CALL createTextNode(const OUString& data)
196*cdf0e10cSrcweir             throw (RuntimeException);
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir         /**
199*cdf0e10cSrcweir         The Document Type Declaration (see DocumentType) associated with this
200*cdf0e10cSrcweir         document.
201*cdf0e10cSrcweir         */
202*cdf0e10cSrcweir         virtual Reference< XDocumentType > SAL_CALL getDoctype()
203*cdf0e10cSrcweir             throw (RuntimeException);
204*cdf0e10cSrcweir 
205*cdf0e10cSrcweir         /**
206*cdf0e10cSrcweir         This is a convenience attribute that allows direct access to the child
207*cdf0e10cSrcweir         node that is the root element of the document.
208*cdf0e10cSrcweir         */
209*cdf0e10cSrcweir         virtual Reference< XElement > SAL_CALL getDocumentElement()
210*cdf0e10cSrcweir             throw (RuntimeException);
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir         /**
213*cdf0e10cSrcweir         Returns the Element whose ID is given by elementId.
214*cdf0e10cSrcweir         */
215*cdf0e10cSrcweir         virtual Reference< XElement > SAL_CALL getElementById(const OUString& elementId)
216*cdf0e10cSrcweir             throw (RuntimeException);
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir         /**
219*cdf0e10cSrcweir         Returns a NodeList of all the Elements with a given tag name in the
220*cdf0e10cSrcweir         order in which they are encountered in a preorder traversal of the
221*cdf0e10cSrcweir         Document tree.
222*cdf0e10cSrcweir         */
223*cdf0e10cSrcweir         virtual Reference< XNodeList > SAL_CALL getElementsByTagName(const OUString& tagname)
224*cdf0e10cSrcweir             throw (RuntimeException);
225*cdf0e10cSrcweir 
226*cdf0e10cSrcweir         /**
227*cdf0e10cSrcweir         Returns a NodeList of all the Elements with a given local name and
228*cdf0e10cSrcweir         namespace URI in the order in which they are encountered in a preorder
229*cdf0e10cSrcweir         traversal of the Document tree.
230*cdf0e10cSrcweir         */
231*cdf0e10cSrcweir         virtual Reference< XNodeList > SAL_CALL getElementsByTagNameNS(const OUString& namespaceURI, const OUString& localName)
232*cdf0e10cSrcweir             throw (RuntimeException);
233*cdf0e10cSrcweir 
234*cdf0e10cSrcweir         /**
235*cdf0e10cSrcweir         The DOMImplementation object that handles this document.
236*cdf0e10cSrcweir         */
237*cdf0e10cSrcweir         virtual Reference< XDOMImplementation > SAL_CALL getImplementation()
238*cdf0e10cSrcweir             throw (RuntimeException);
239*cdf0e10cSrcweir 
240*cdf0e10cSrcweir         /**
241*cdf0e10cSrcweir         Imports a node from another document to this document.
242*cdf0e10cSrcweir         */
243*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL importNode(const Reference< XNode >& importedNode, sal_Bool deep)
244*cdf0e10cSrcweir             throw (RuntimeException, DOMException);
245*cdf0e10cSrcweir 
246*cdf0e10cSrcweir 		// XDocumentEvent
247*cdf0e10cSrcweir 		virtual Reference< XEvent > SAL_CALL createEvent(const OUString& eventType) throw (RuntimeException);
248*cdf0e10cSrcweir 
249*cdf0e10cSrcweir 		// XActiveDataControl,
250*cdf0e10cSrcweir 		// see http://api.openoffice.org/docs/common/ref/com/sun/star/io/XActiveDataControl.html
251*cdf0e10cSrcweir 		virtual void SAL_CALL addListener(const Reference< XStreamListener >& aListener )  throw (RuntimeException);
252*cdf0e10cSrcweir 		virtual void SAL_CALL removeListener(const Reference< XStreamListener >& aListener ) throw (RuntimeException);
253*cdf0e10cSrcweir 		virtual void SAL_CALL start() throw (RuntimeException);
254*cdf0e10cSrcweir 		virtual void SAL_CALL terminate() throw (RuntimeException);
255*cdf0e10cSrcweir 
256*cdf0e10cSrcweir 		// XActiveDataSource
257*cdf0e10cSrcweir 		// see http://api.openoffice.org/docs/common/ref/com/sun/star/io/XActiveDataSource.html
258*cdf0e10cSrcweir 		virtual void SAL_CALL setOutputStream( 	const Reference< XOutputStream >& aStream ) throw (RuntimeException);
259*cdf0e10cSrcweir 		virtual Reference< XOutputStream > SAL_CALL getOutputStream() throw (RuntimeException);
260*cdf0e10cSrcweir 
261*cdf0e10cSrcweir         // ---- resolve uno inheritance problems...
262*cdf0e10cSrcweir         // overrides for XNode base
263*cdf0e10cSrcweir         virtual OUString SAL_CALL getNodeName()
264*cdf0e10cSrcweir             throw (RuntimeException);
265*cdf0e10cSrcweir         virtual OUString SAL_CALL getNodeValue()
266*cdf0e10cSrcweir             throw (RuntimeException);
267*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep)
268*cdf0e10cSrcweir             throw (RuntimeException);
269*cdf0e10cSrcweir         // --- delegation for XNde base.
270*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild)
271*cdf0e10cSrcweir             throw (RuntimeException, DOMException)
272*cdf0e10cSrcweir         {
273*cdf0e10cSrcweir             return CNode::appendChild(newChild);
274*cdf0e10cSrcweir         }
275*cdf0e10cSrcweir         virtual Reference< XNamedNodeMap > SAL_CALL getAttributes()
276*cdf0e10cSrcweir             throw (RuntimeException)
277*cdf0e10cSrcweir         {
278*cdf0e10cSrcweir             return CNode::getAttributes();
279*cdf0e10cSrcweir         }
280*cdf0e10cSrcweir         virtual Reference< XNodeList > SAL_CALL getChildNodes()
281*cdf0e10cSrcweir             throw (RuntimeException)
282*cdf0e10cSrcweir         {
283*cdf0e10cSrcweir             return CNode::getChildNodes();
284*cdf0e10cSrcweir         }
285*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL getFirstChild()
286*cdf0e10cSrcweir             throw (RuntimeException)
287*cdf0e10cSrcweir         {
288*cdf0e10cSrcweir             return CNode::getFirstChild();
289*cdf0e10cSrcweir         }
290*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL getLastChild()
291*cdf0e10cSrcweir             throw (RuntimeException)
292*cdf0e10cSrcweir         {
293*cdf0e10cSrcweir             return CNode::getLastChild();
294*cdf0e10cSrcweir         }
295*cdf0e10cSrcweir         virtual OUString SAL_CALL getLocalName()
296*cdf0e10cSrcweir             throw (RuntimeException)
297*cdf0e10cSrcweir         {
298*cdf0e10cSrcweir             return CNode::getLocalName();
299*cdf0e10cSrcweir         }
300*cdf0e10cSrcweir         virtual OUString SAL_CALL getNamespaceURI()
301*cdf0e10cSrcweir             throw (RuntimeException)
302*cdf0e10cSrcweir         {
303*cdf0e10cSrcweir             return CNode::getNamespaceURI();
304*cdf0e10cSrcweir         }
305*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL getNextSibling()
306*cdf0e10cSrcweir             throw (RuntimeException)
307*cdf0e10cSrcweir         {
308*cdf0e10cSrcweir             return CNode::getNextSibling();
309*cdf0e10cSrcweir         }
310*cdf0e10cSrcweir         virtual NodeType SAL_CALL getNodeType()
311*cdf0e10cSrcweir             throw (RuntimeException)
312*cdf0e10cSrcweir         {
313*cdf0e10cSrcweir             return CNode::getNodeType();
314*cdf0e10cSrcweir         }
315*cdf0e10cSrcweir         virtual Reference< XDocument > SAL_CALL getOwnerDocument()
316*cdf0e10cSrcweir             throw (RuntimeException)
317*cdf0e10cSrcweir         {
318*cdf0e10cSrcweir             return CNode::getOwnerDocument();
319*cdf0e10cSrcweir         }
320*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL getParentNode()
321*cdf0e10cSrcweir             throw (RuntimeException)
322*cdf0e10cSrcweir         {
323*cdf0e10cSrcweir             return CNode::getParentNode();
324*cdf0e10cSrcweir         }
325*cdf0e10cSrcweir         virtual OUString SAL_CALL getPrefix()
326*cdf0e10cSrcweir             throw (RuntimeException)
327*cdf0e10cSrcweir         {
328*cdf0e10cSrcweir            return CNode::getPrefix();
329*cdf0e10cSrcweir         }
330*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL getPreviousSibling()
331*cdf0e10cSrcweir             throw (RuntimeException)
332*cdf0e10cSrcweir         {
333*cdf0e10cSrcweir             return CNode::getPreviousSibling();
334*cdf0e10cSrcweir         }
335*cdf0e10cSrcweir         virtual sal_Bool SAL_CALL hasAttributes()
336*cdf0e10cSrcweir             throw (RuntimeException)
337*cdf0e10cSrcweir         {
338*cdf0e10cSrcweir             return CNode::hasAttributes();
339*cdf0e10cSrcweir         }
340*cdf0e10cSrcweir         virtual sal_Bool SAL_CALL hasChildNodes()
341*cdf0e10cSrcweir             throw (RuntimeException)
342*cdf0e10cSrcweir         {
343*cdf0e10cSrcweir             return CNode::hasChildNodes();
344*cdf0e10cSrcweir         }
345*cdf0e10cSrcweir 		virtual Reference< XNode > SAL_CALL insertBefore(
346*cdf0e10cSrcweir 				const Reference< XNode >& newChild, const Reference< XNode >& refChild)
347*cdf0e10cSrcweir             throw (RuntimeException, DOMException)
348*cdf0e10cSrcweir 		{
349*cdf0e10cSrcweir 			return CNode::insertBefore(newChild, refChild);
350*cdf0e10cSrcweir 		}
351*cdf0e10cSrcweir 		virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
352*cdf0e10cSrcweir 			throw (RuntimeException)
353*cdf0e10cSrcweir 		{
354*cdf0e10cSrcweir 			return CNode::isSupported(feature, ver);
355*cdf0e10cSrcweir 		}
356*cdf0e10cSrcweir 		virtual void SAL_CALL normalize()
357*cdf0e10cSrcweir 			throw (RuntimeException)
358*cdf0e10cSrcweir 		{
359*cdf0e10cSrcweir 			CNode::normalize();
360*cdf0e10cSrcweir 		}
361*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild)
362*cdf0e10cSrcweir             throw (RuntimeException, DOMException)
363*cdf0e10cSrcweir         {
364*cdf0e10cSrcweir             return CNode::removeChild(oldChild);
365*cdf0e10cSrcweir         }
366*cdf0e10cSrcweir         virtual Reference< XNode > SAL_CALL replaceChild(
367*cdf0e10cSrcweir                 const Reference< XNode >& newChild, const Reference< XNode >& oldChild)
368*cdf0e10cSrcweir             throw (RuntimeException, DOMException)
369*cdf0e10cSrcweir         {
370*cdf0e10cSrcweir             return CNode::replaceChild(newChild, oldChild);
371*cdf0e10cSrcweir         }
372*cdf0e10cSrcweir         virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
373*cdf0e10cSrcweir             throw (RuntimeException, DOMException)
374*cdf0e10cSrcweir         {
375*cdf0e10cSrcweir             return CNode::setNodeValue(nodeValue);
376*cdf0e10cSrcweir         }
377*cdf0e10cSrcweir         virtual void SAL_CALL setPrefix(const OUString& prefix)
378*cdf0e10cSrcweir             throw (RuntimeException, DOMException)
379*cdf0e10cSrcweir         {
380*cdf0e10cSrcweir             return CNode::setPrefix(prefix);
381*cdf0e10cSrcweir         }
382*cdf0e10cSrcweir 
383*cdf0e10cSrcweir         // ::com::sun::star::xml::sax::XSAXSerializable
384*cdf0e10cSrcweir         virtual void SAL_CALL serialize(
385*cdf0e10cSrcweir             const Reference< XDocumentHandler >& i_xHandler,
386*cdf0e10cSrcweir             const Sequence< beans::StringPair >& i_rNamespaces)
387*cdf0e10cSrcweir             throw (RuntimeException, SAXException);
388*cdf0e10cSrcweir 
389*cdf0e10cSrcweir         // ::com::sun::star::xml::sax::XFastSAXSerializable
390*cdf0e10cSrcweir         virtual void SAL_CALL fastSerialize( const Reference< XFastDocumentHandler >& handler,
391*cdf0e10cSrcweir                                              const Reference< XFastTokenHandler >& tokenHandler,
392*cdf0e10cSrcweir                                              const Sequence< beans::StringPair >& i_rNamespaces,
393*cdf0e10cSrcweir                                              const Sequence< beans::Pair< rtl::OUString, sal_Int32 > >& namespaces )
394*cdf0e10cSrcweir             throw (SAXException, RuntimeException);
395*cdf0e10cSrcweir     };
396*cdf0e10cSrcweir }
397*cdf0e10cSrcweir 
398*cdf0e10cSrcweir #endif
399