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(); 60 61 /** 62 The system identifier of this notation. 63 */ 64 virtual OUString SAL_CALL getSystemId(); 65 66 // ---- resolve uno inheritance problems... 67 // overrides for XNode base 68 virtual OUString SAL_CALL getNodeName(); 69 virtual OUString SAL_CALL getNodeValue(); 70 // --- delegation for XNde base. appendChild(const Reference<XNode> & newChild)71 virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild) 72 { 73 return CNode::appendChild(newChild); 74 } cloneNode(sal_Bool deep)75 virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep) 76 { 77 return CNode::cloneNode(deep); 78 } getAttributes()79 virtual Reference< XNamedNodeMap > SAL_CALL getAttributes() 80 { 81 return CNode::getAttributes(); 82 } getChildNodes()83 virtual Reference< XNodeList > SAL_CALL getChildNodes() 84 { 85 return CNode::getChildNodes(); 86 } getFirstChild()87 virtual Reference< XNode > SAL_CALL getFirstChild() 88 { 89 return CNode::getFirstChild(); 90 } getLastChild()91 virtual Reference< XNode > SAL_CALL getLastChild() 92 { 93 return CNode::getLastChild(); 94 } getLocalName()95 virtual OUString SAL_CALL getLocalName() 96 { 97 return CNode::getLocalName(); 98 } getNamespaceURI()99 virtual OUString SAL_CALL getNamespaceURI() 100 { 101 return CNode::getNamespaceURI(); 102 } getNextSibling()103 virtual Reference< XNode > SAL_CALL getNextSibling() 104 { 105 return CNode::getNextSibling(); 106 } getNodeType()107 virtual NodeType SAL_CALL getNodeType() 108 { 109 return CNode::getNodeType(); 110 } getOwnerDocument()111 virtual Reference< XDocument > SAL_CALL getOwnerDocument() 112 { 113 return CNode::getOwnerDocument(); 114 } getParentNode()115 virtual Reference< XNode > SAL_CALL getParentNode() 116 { 117 return CNode::getParentNode(); 118 } getPrefix()119 virtual OUString SAL_CALL getPrefix() 120 { 121 return CNode::getPrefix(); 122 } getPreviousSibling()123 virtual Reference< XNode > SAL_CALL getPreviousSibling() 124 { 125 return CNode::getPreviousSibling(); 126 } hasAttributes()127 virtual sal_Bool SAL_CALL hasAttributes() 128 { 129 return CNode::hasAttributes(); 130 } hasChildNodes()131 virtual sal_Bool SAL_CALL hasChildNodes() 132 { 133 return CNode::hasChildNodes(); 134 } insertBefore(const Reference<XNode> & newChild,const Reference<XNode> & refChild)135 virtual Reference< XNode > SAL_CALL insertBefore( 136 const Reference< XNode >& newChild, const Reference< XNode >& refChild) 137 { 138 return CNode::insertBefore(newChild, refChild); 139 } isSupported(const OUString & feature,const OUString & ver)140 virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver) 141 { 142 return CNode::isSupported(feature, ver); 143 } normalize()144 virtual void SAL_CALL normalize() 145 { 146 CNode::normalize(); 147 } removeChild(const Reference<XNode> & oldChild)148 virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild) 149 { 150 return CNode::removeChild(oldChild); 151 } replaceChild(const Reference<XNode> & newChild,const Reference<XNode> & oldChild)152 virtual Reference< XNode > SAL_CALL replaceChild( 153 const Reference< XNode >& newChild, const Reference< XNode >& oldChild) 154 { 155 return CNode::replaceChild(newChild, oldChild); 156 } setNodeValue(const OUString & nodeValue)157 virtual void SAL_CALL setNodeValue(const OUString& nodeValue) 158 { 159 return CNode::setNodeValue(nodeValue); 160 } setPrefix(const OUString & prefix)161 virtual void SAL_CALL setPrefix(const OUString& prefix) 162 { 163 return CNode::setPrefix(prefix); 164 } 165 166 167 }; 168 } 169 170 #endif 171