LCOV - code coverage report
Current view: top level - unoxml/source/dom - documenttype.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 48 0.0 %
Date: 2014-04-14 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 INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTTYPE_HXX
      21             : #define INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTTYPE_HXX
      22             : 
      23             : #include <libxml/tree.h>
      24             : 
      25             : #include <sal/types.h>
      26             : 
      27             : #include <com/sun/star/uno/Reference.h>
      28             : #include <com/sun/star/xml/dom/XDocumentType.hpp>
      29             : #include <com/sun/star/xml/dom/XNodeList.hpp>
      30             : #include <com/sun/star/xml/dom/XNamedNodeMap.hpp>
      31             : 
      32             : #include <node.hxx>
      33             : 
      34             : 
      35             : using namespace com::sun::star::uno;
      36             : using namespace com::sun::star::xml::dom;
      37             : 
      38             : namespace DOM
      39             : {
      40             :     typedef ::cppu::ImplInheritanceHelper1< CNode, XDocumentType >
      41             :         CDocumentType_Base;
      42             : 
      43           0 :     class CDocumentType
      44             :         : public CDocumentType_Base
      45             :     {
      46             :     private:
      47             :         friend class CDocument;
      48             : 
      49             :     private:
      50             :         xmlDtdPtr m_aDtdPtr;
      51             : 
      52             :     protected:
      53             :         CDocumentType(CDocument const& rDocument, ::osl::Mutex const& rMutex,
      54             :                 xmlDtdPtr const pDtd);
      55             : 
      56             :     public:
      57             :         /**
      58             :         A NamedNodeMap containing the general entities, both external and
      59             :         internal, declared in the DTD.
      60             :         */
      61             :         virtual Reference< XNamedNodeMap > SAL_CALL getEntities() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      62             : 
      63             :         /**
      64             :         The internal subset as a string, or null if there is none.
      65             :         */
      66             :         virtual OUString SAL_CALL getInternalSubset() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      67             : 
      68             :         /**
      69             :         The name of DTD; i.e., the name immediately following the DOCTYPE
      70             :         keyword.
      71             :         */
      72             :         virtual OUString SAL_CALL getName() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      73             : 
      74             :         /**
      75             :         A NamedNodeMap containing the notations declared in the DTD.
      76             :         */
      77             :         virtual Reference< XNamedNodeMap > SAL_CALL getNotations() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      78             : 
      79             :         /**
      80             :         The public identifier of the external subset.
      81             :         */
      82             :         virtual OUString SAL_CALL getPublicId() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      83             : 
      84             :         /**
      85             :         The system identifier of the external subset.
      86             :         */
      87             :         virtual OUString SAL_CALL getSystemId() throw (RuntimeException, std::exception) SAL_OVERRIDE;
      88             : 
      89             :         // ---- resolve uno inheritance problems...
      90             :         // overrides for XNode base
      91             :         virtual OUString SAL_CALL getNodeName()
      92             :             throw (RuntimeException, std::exception) SAL_OVERRIDE;
      93             :         virtual OUString SAL_CALL getNodeValue()
      94             :             throw (RuntimeException, std::exception) SAL_OVERRIDE;
      95             :     // --- delegation for XNde base.
      96           0 :     virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild)
      97             :         throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
      98             :     {
      99           0 :         return CNode::appendChild(newChild);
     100             :     }
     101           0 :     virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep)
     102             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     103             :     {
     104           0 :         return CNode::cloneNode(deep);
     105             :     }
     106           0 :     virtual Reference< XNamedNodeMap > SAL_CALL getAttributes()
     107             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     108             :     {
     109           0 :         return CNode::getAttributes();
     110             :     }
     111           0 :     virtual Reference< XNodeList > SAL_CALL getChildNodes()
     112             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     113             :     {
     114           0 :         return CNode::getChildNodes();
     115             :     }
     116           0 :     virtual Reference< XNode > SAL_CALL getFirstChild()
     117             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     118             :     {
     119           0 :         return CNode::getFirstChild();
     120             :     }
     121           0 :     virtual Reference< XNode > SAL_CALL getLastChild()
     122             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     123             :     {
     124           0 :         return CNode::getLastChild();
     125             :     }
     126           0 :     virtual OUString SAL_CALL getLocalName()
     127             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     128             :     {
     129           0 :         return CNode::getLocalName();
     130             :     }
     131           0 :     virtual OUString SAL_CALL getNamespaceURI()
     132             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     133             :     {
     134           0 :         return CNode::getNamespaceURI();
     135             :     }
     136           0 :     virtual Reference< XNode > SAL_CALL getNextSibling()
     137             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     138             :     {
     139           0 :         return CNode::getNextSibling();
     140             :     }
     141           0 :     virtual NodeType SAL_CALL getNodeType()
     142             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     143             :     {
     144           0 :         return CNode::getNodeType();
     145             :     }
     146           0 :     virtual Reference< XDocument > SAL_CALL getOwnerDocument()
     147             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     148             :     {
     149           0 :         return CNode::getOwnerDocument();
     150             :     }
     151           0 :     virtual Reference< XNode > SAL_CALL getParentNode()
     152             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     153             :     {
     154           0 :         return CNode::getParentNode();
     155             :     }
     156           0 :     virtual OUString SAL_CALL getPrefix()
     157             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     158             :     {
     159           0 :         return CNode::getPrefix();
     160             :     }
     161           0 :     virtual Reference< XNode > SAL_CALL getPreviousSibling()
     162             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     163             :     {
     164           0 :         return CNode::getPreviousSibling();
     165             :     }
     166           0 :     virtual sal_Bool SAL_CALL hasAttributes()
     167             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     168             :     {
     169           0 :         return CNode::hasAttributes();
     170             :     }
     171           0 :     virtual sal_Bool SAL_CALL hasChildNodes()
     172             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     173             :     {
     174           0 :         return CNode::hasChildNodes();
     175             :     }
     176           0 :     virtual Reference< XNode > SAL_CALL insertBefore(
     177             :             const Reference< XNode >& newChild, const Reference< XNode >& refChild)
     178             :         throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
     179             :     {
     180           0 :         return CNode::insertBefore(newChild, refChild);
     181             :     }
     182           0 :     virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
     183             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     184             :     {
     185           0 :         return CNode::isSupported(feature, ver);
     186             :     }
     187           0 :     virtual void SAL_CALL normalize()
     188             :         throw (RuntimeException, std::exception) SAL_OVERRIDE
     189             :     {
     190           0 :         CNode::normalize();
     191           0 :     }
     192           0 :     virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild)
     193             :         throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
     194             :     {
     195           0 :         return CNode::removeChild(oldChild);
     196             :     }
     197           0 :     virtual Reference< XNode > SAL_CALL replaceChild(
     198             :             const Reference< XNode >& newChild, const Reference< XNode >& oldChild)
     199             :         throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
     200             :     {
     201           0 :         return CNode::replaceChild(newChild, oldChild);
     202             :     }
     203           0 :     virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
     204             :         throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
     205             :     {
     206           0 :         return CNode::setNodeValue(nodeValue);
     207             :     }
     208           0 :     virtual void SAL_CALL setPrefix(const OUString& prefix)
     209             :         throw (RuntimeException, DOMException, std::exception) SAL_OVERRIDE
     210             :     {
     211           0 :         return CNode::setPrefix(prefix);
     212             :     }
     213             : 
     214             :     };
     215             : }
     216             : #endif
     217             : 
     218             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10