xref: /aoo42x/main/unoxml/source/dom/notation.hxx (revision 7f654276)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef DOM_NOTATION_HXX
25 #define DOM_NOTATION_HXX
26 
27 #include <libxml/tree.h>
28 
29 #include <com/sun/star/uno/Reference.h>
30 #include <com/sun/star/xml/dom/XNotation.hpp>
31 
32 #include <node.hxx>
33 
34 
35 using ::rtl::OUString;
36 using namespace com::sun::star::uno;
37 using namespace com::sun::star::xml::dom;
38 
39 namespace DOM
40 {
41     typedef cppu::ImplInheritanceHelper1< CNode, XNotation > CNotation_Base;
42 
43     class CNotation
44         : public CNotation_Base
45     {
46     private:
47         friend class CDocument;
48 
49     private:
50         xmlNotationPtr m_aNotationPtr;
51 
52     protected:
53         CNotation(CDocument const& rDocument, ::osl::Mutex const& rMutex,
54                 xmlNotationPtr const pNotation);
55 
56         /**
57         The public identifier of this notation.
58         */
59         virtual OUString SAL_CALL getPublicId() throw (RuntimeException);
60 
61         /**
62         The system identifier of this notation.
63         */
64         virtual OUString SAL_CALL getSystemId() throw (RuntimeException);
65 
66         // ---- resolve uno inheritance problems...
67         // overrides for XNode base
68         virtual OUString SAL_CALL getNodeName()
69             throw (RuntimeException);
70         virtual OUString SAL_CALL getNodeValue()
71             throw (RuntimeException);
72     // --- delegation for XNde base.
appendChild(const Reference<XNode> & newChild)73     virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild)
74         throw (RuntimeException, DOMException)
75     {
76         return CNode::appendChild(newChild);
77     }
cloneNode(sal_Bool deep)78     virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep)
79         throw (RuntimeException)
80     {
81         return CNode::cloneNode(deep);
82     }
getAttributes()83     virtual Reference< XNamedNodeMap > SAL_CALL getAttributes()
84         throw (RuntimeException)
85     {
86         return CNode::getAttributes();
87     }
getChildNodes()88     virtual Reference< XNodeList > SAL_CALL getChildNodes()
89         throw (RuntimeException)
90     {
91         return CNode::getChildNodes();
92     }
getFirstChild()93     virtual Reference< XNode > SAL_CALL getFirstChild()
94         throw (RuntimeException)
95     {
96         return CNode::getFirstChild();
97     }
getLastChild()98     virtual Reference< XNode > SAL_CALL getLastChild()
99         throw (RuntimeException)
100     {
101         return CNode::getLastChild();
102     }
getLocalName()103     virtual OUString SAL_CALL getLocalName()
104         throw (RuntimeException)
105     {
106         return CNode::getLocalName();
107     }
getNamespaceURI()108     virtual OUString SAL_CALL getNamespaceURI()
109         throw (RuntimeException)
110     {
111         return CNode::getNamespaceURI();
112     }
getNextSibling()113     virtual Reference< XNode > SAL_CALL getNextSibling()
114         throw (RuntimeException)
115     {
116         return CNode::getNextSibling();
117     }
getNodeType()118     virtual NodeType SAL_CALL getNodeType()
119         throw (RuntimeException)
120     {
121         return CNode::getNodeType();
122     }
getOwnerDocument()123     virtual Reference< XDocument > SAL_CALL getOwnerDocument()
124         throw (RuntimeException)
125     {
126         return CNode::getOwnerDocument();
127     }
getParentNode()128     virtual Reference< XNode > SAL_CALL getParentNode()
129         throw (RuntimeException)
130     {
131         return CNode::getParentNode();
132     }
getPrefix()133     virtual OUString SAL_CALL getPrefix()
134         throw (RuntimeException)
135     {
136         return CNode::getPrefix();
137     }
getPreviousSibling()138     virtual Reference< XNode > SAL_CALL getPreviousSibling()
139         throw (RuntimeException)
140     {
141         return CNode::getPreviousSibling();
142     }
hasAttributes()143     virtual sal_Bool SAL_CALL hasAttributes()
144         throw (RuntimeException)
145     {
146         return CNode::hasAttributes();
147     }
hasChildNodes()148     virtual sal_Bool SAL_CALL hasChildNodes()
149         throw (RuntimeException)
150     {
151         return CNode::hasChildNodes();
152     }
insertBefore(const Reference<XNode> & newChild,const Reference<XNode> & refChild)153     virtual Reference< XNode > SAL_CALL insertBefore(
154             const Reference< XNode >& newChild, const Reference< XNode >& refChild)
155         throw (RuntimeException, DOMException)
156     {
157         return CNode::insertBefore(newChild, refChild);
158     }
isSupported(const OUString & feature,const OUString & ver)159     virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
160         throw (RuntimeException)
161     {
162         return CNode::isSupported(feature, ver);
163     }
normalize()164     virtual void SAL_CALL normalize()
165         throw (RuntimeException)
166     {
167         CNode::normalize();
168     }
removeChild(const Reference<XNode> & oldChild)169     virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild)
170         throw (RuntimeException, DOMException)
171     {
172         return CNode::removeChild(oldChild);
173     }
replaceChild(const Reference<XNode> & newChild,const Reference<XNode> & oldChild)174     virtual Reference< XNode > SAL_CALL replaceChild(
175             const Reference< XNode >& newChild, const Reference< XNode >& oldChild)
176         throw (RuntimeException, DOMException)
177     {
178         return CNode::replaceChild(newChild, oldChild);
179     }
setNodeValue(const OUString & nodeValue)180     virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
181         throw (RuntimeException, DOMException)
182     {
183         return CNode::setNodeValue(nodeValue);
184     }
setPrefix(const OUString & prefix)185     virtual void SAL_CALL setPrefix(const OUString& prefix)
186         throw (RuntimeException, DOMException)
187     {
188         return CNode::setPrefix(prefix);
189     }
190 
191 
192     };
193 }
194 
195 #endif
196