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 INCLUDED_UNOXML_SOURCE_DOM_NOTATION_HXX
21 : #define INCLUDED_UNOXML_SOURCE_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 namespace com::sun::star::uno;
32 : using namespace com::sun::star::xml::dom;
33 :
34 : namespace DOM
35 : {
36 : typedef cppu::ImplInheritanceHelper1< CNode, XNotation > CNotation_Base;
37 :
38 0 : class CNotation
39 : : public CNotation_Base
40 : {
41 : private:
42 : friend class CDocument;
43 :
44 : private:
45 : xmlNotationPtr m_aNotationPtr;
46 :
47 : protected:
48 : CNotation(CDocument const& rDocument, ::osl::Mutex const& rMutex,
49 : xmlNotationPtr const pNotation);
50 :
51 : /**
52 : The public identifier of this notation.
53 : */
54 : virtual OUString SAL_CALL getPublicId() throw (RuntimeException, std::exception) SAL_OVERRIDE;
55 :
56 : /**
57 : The system identifier of this notation.
58 : */
59 : virtual OUString SAL_CALL getSystemId() throw (RuntimeException, std::exception) SAL_OVERRIDE;
60 :
61 : // ---- resolve uno inheritance problems...
62 : // overrides for XNode base
63 : virtual OUString SAL_CALL getNodeName()
64 : throw (RuntimeException, std::exception) SAL_OVERRIDE;
65 : virtual OUString SAL_CALL getNodeValue()
66 : throw (RuntimeException, std::exception) SAL_OVERRIDE;
67 : // --- delegation for XNde base.
68 0 : virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild)
69 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
70 : {
71 0 : return CNode::appendChild(newChild);
72 : }
73 0 : virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep)
74 : throw (RuntimeException, std::exception) SAL_OVERRIDE
75 : {
76 0 : return CNode::cloneNode(deep);
77 : }
78 0 : virtual Reference< XNamedNodeMap > SAL_CALL getAttributes()
79 : throw (RuntimeException, std::exception) SAL_OVERRIDE
80 : {
81 0 : return CNode::getAttributes();
82 : }
83 0 : virtual Reference< XNodeList > SAL_CALL getChildNodes()
84 : throw (RuntimeException, std::exception) SAL_OVERRIDE
85 : {
86 0 : return CNode::getChildNodes();
87 : }
88 0 : virtual Reference< XNode > SAL_CALL getFirstChild()
89 : throw (RuntimeException, std::exception) SAL_OVERRIDE
90 : {
91 0 : return CNode::getFirstChild();
92 : }
93 0 : virtual Reference< XNode > SAL_CALL getLastChild()
94 : throw (RuntimeException, std::exception) SAL_OVERRIDE
95 : {
96 0 : return CNode::getLastChild();
97 : }
98 0 : virtual OUString SAL_CALL getLocalName()
99 : throw (RuntimeException, std::exception) SAL_OVERRIDE
100 : {
101 0 : return CNode::getLocalName();
102 : }
103 0 : virtual OUString SAL_CALL getNamespaceURI()
104 : throw (RuntimeException, std::exception) SAL_OVERRIDE
105 : {
106 0 : return CNode::getNamespaceURI();
107 : }
108 0 : virtual Reference< XNode > SAL_CALL getNextSibling()
109 : throw (RuntimeException, std::exception) SAL_OVERRIDE
110 : {
111 0 : return CNode::getNextSibling();
112 : }
113 0 : virtual NodeType SAL_CALL getNodeType()
114 : throw (RuntimeException, std::exception) SAL_OVERRIDE
115 : {
116 0 : return CNode::getNodeType();
117 : }
118 0 : virtual Reference< XDocument > SAL_CALL getOwnerDocument()
119 : throw (RuntimeException, std::exception) SAL_OVERRIDE
120 : {
121 0 : return CNode::getOwnerDocument();
122 : }
123 0 : virtual Reference< XNode > SAL_CALL getParentNode()
124 : throw (RuntimeException, std::exception) SAL_OVERRIDE
125 : {
126 0 : return CNode::getParentNode();
127 : }
128 0 : virtual OUString SAL_CALL getPrefix()
129 : throw (RuntimeException, std::exception) SAL_OVERRIDE
130 : {
131 0 : return CNode::getPrefix();
132 : }
133 0 : virtual Reference< XNode > SAL_CALL getPreviousSibling()
134 : throw (RuntimeException, std::exception) SAL_OVERRIDE
135 : {
136 0 : return CNode::getPreviousSibling();
137 : }
138 0 : virtual sal_Bool SAL_CALL hasAttributes()
139 : throw (RuntimeException, std::exception) SAL_OVERRIDE
140 : {
141 0 : return CNode::hasAttributes();
142 : }
143 0 : virtual sal_Bool SAL_CALL hasChildNodes()
144 : throw (RuntimeException, std::exception) SAL_OVERRIDE
145 : {
146 0 : return CNode::hasChildNodes();
147 : }
148 0 : virtual Reference< XNode > SAL_CALL insertBefore(
149 : const Reference< XNode >& newChild, const Reference< XNode >& refChild)
150 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
151 : {
152 0 : return CNode::insertBefore(newChild, refChild);
153 : }
154 0 : virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
155 : throw (RuntimeException, std::exception) SAL_OVERRIDE
156 : {
157 0 : return CNode::isSupported(feature, ver);
158 : }
159 0 : virtual void SAL_CALL normalize()
160 : throw (RuntimeException, std::exception) SAL_OVERRIDE
161 : {
162 0 : CNode::normalize();
163 0 : }
164 0 : virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild)
165 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
166 : {
167 0 : return CNode::removeChild(oldChild);
168 : }
169 0 : virtual Reference< XNode > SAL_CALL replaceChild(
170 : const Reference< XNode >& newChild, const Reference< XNode >& oldChild)
171 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
172 : {
173 0 : return CNode::replaceChild(newChild, oldChild);
174 : }
175 0 : virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
176 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
177 : {
178 0 : return CNode::setNodeValue(nodeValue);
179 : }
180 0 : virtual void SAL_CALL setPrefix(const OUString& prefix)
181 : throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
182 : {
183 0 : return CNode::setPrefix(prefix);
184 : }
185 :
186 :
187 : };
188 : }
189 :
190 : #endif
191 :
192 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|