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

Generated by: LCOV version 1.10