merge the formfield patch from ooo-build
[ooovba.git] / unoxml / source / dom / notation.hxx
blobd25d5010082794e3876f47e405090f1fc34aeb63
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: notation.hxx,v $
10 * $Revision: 1.8 $
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 ************************************************************************/
31 #ifndef _NOTATION_HXX
32 #define _NOTATION_HXX
34 #include <com/sun/star/uno/Reference.h>
35 #include <com/sun/star/uno/Exception.hpp>
36 #include <com/sun/star/xml/dom/XNotation.hpp>
37 #include "node.hxx"
38 #include <libxml/tree.h>
40 using ::rtl::OUString;
41 using namespace com::sun::star::uno;
42 using namespace com::sun::star::xml::dom;
44 namespace DOM
46 class CNotation : public cppu::ImplInheritanceHelper1< CNode, XNotation >
48 friend class CNode;
49 private:
50 xmlNotationPtr m_aNotationPtr;
52 protected:
53 CNotation(const xmlNotationPtr);
55 /**
56 The public identifier of this notation.
58 virtual OUString SAL_CALL getPublicId() throw (RuntimeException);
60 /**
61 The system identifier of this notation.
63 virtual OUString SAL_CALL getSystemId() throw (RuntimeException);
65 // ---- resolve uno inheritance problems...
66 // overrides for XNode base
67 virtual OUString SAL_CALL getNodeName()
68 throw (RuntimeException);
69 virtual OUString SAL_CALL getNodeValue()
70 throw (RuntimeException);
71 // --- delegation for XNde base.
72 virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild)
73 throw (RuntimeException, DOMException)
75 return CNode::appendChild(newChild);
77 virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep)
78 throw (RuntimeException)
80 return CNode::cloneNode(deep);
82 virtual Reference< XNamedNodeMap > SAL_CALL getAttributes()
83 throw (RuntimeException)
85 return CNode::getAttributes();
87 virtual Reference< XNodeList > SAL_CALL getChildNodes()
88 throw (RuntimeException)
90 return CNode::getChildNodes();
92 virtual Reference< XNode > SAL_CALL getFirstChild()
93 throw (RuntimeException)
95 return CNode::getFirstChild();
97 virtual Reference< XNode > SAL_CALL getLastChild()
98 throw (RuntimeException)
100 return CNode::getLastChild();
102 virtual OUString SAL_CALL getLocalName()
103 throw (RuntimeException)
105 return CNode::getLocalName();
107 virtual OUString SAL_CALL getNamespaceURI()
108 throw (RuntimeException)
110 return CNode::getNamespaceURI();
112 virtual Reference< XNode > SAL_CALL getNextSibling()
113 throw (RuntimeException)
115 return CNode::getNextSibling();
117 virtual NodeType SAL_CALL getNodeType()
118 throw (RuntimeException)
120 return CNode::getNodeType();
122 virtual Reference< XDocument > SAL_CALL getOwnerDocument()
123 throw (RuntimeException)
125 return CNode::getOwnerDocument();
127 virtual Reference< XNode > SAL_CALL getParentNode()
128 throw (RuntimeException)
130 return CNode::getParentNode();
132 virtual OUString SAL_CALL getPrefix()
133 throw (RuntimeException)
135 return CNode::getPrefix();
137 virtual Reference< XNode > SAL_CALL getPreviousSibling()
138 throw (RuntimeException)
140 return CNode::getPreviousSibling();
142 virtual sal_Bool SAL_CALL hasAttributes()
143 throw (RuntimeException)
145 return CNode::hasAttributes();
147 virtual sal_Bool SAL_CALL hasChildNodes()
148 throw (RuntimeException)
150 return CNode::hasChildNodes();
152 virtual Reference< XNode > SAL_CALL insertBefore(
153 const Reference< XNode >& newChild, const Reference< XNode >& refChild)
154 throw (RuntimeException, DOMException)
156 return CNode::insertBefore(newChild, refChild);
158 virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
159 throw (RuntimeException)
161 return CNode::isSupported(feature, ver);
163 virtual void SAL_CALL normalize()
164 throw (RuntimeException)
166 CNode::normalize();
168 virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild)
169 throw (RuntimeException, DOMException)
171 return CNode::removeChild(oldChild);
173 virtual Reference< XNode > SAL_CALL replaceChild(
174 const Reference< XNode >& newChild, const Reference< XNode >& oldChild)
175 throw (RuntimeException, DOMException)
177 return CNode::replaceChild(newChild, oldChild);
179 virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
180 throw (RuntimeException, DOMException)
182 return CNode::setNodeValue(nodeValue);
184 virtual void SAL_CALL setPrefix(const OUString& prefix)
185 throw (RuntimeException, DOMException)
187 return CNode::setPrefix(prefix);
194 #endif