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