LCOV - code coverage report
Current view: top level - libreoffice/unoxml/source/dom - entityreference.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 48 0.0 %
Date: 2012-12-17 Functions: 0 25 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.10