LCOV - code coverage report
Current view: top level - libreoffice/unoxml/source/dom - cdatasection.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 71 0.0 %
Date: 2012-12-17 Functions: 0 34 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_CDATASECTION_HXX
      21             : #define DOM_CDATASECTION_HXX
      22             : 
      23             : #include <com/sun/star/uno/Reference.h>
      24             : #include <com/sun/star/xml/dom/XCDATASection.hpp>
      25             : 
      26             : #include <text.hxx>
      27             : 
      28             : 
      29             : using ::rtl::OUString;
      30             : using namespace com::sun::star::uno;
      31             : using namespace com::sun::star::xml::dom;
      32             : 
      33             : namespace DOM
      34             : {
      35             :     typedef ::cppu::ImplInheritanceHelper1< CText, XCDATASection >
      36             :         CCDATASection_Base;
      37             : 
      38           0 :     class CCDATASection
      39             :         : public CCDATASection_Base
      40             :     {
      41             :         friend class CDocument;
      42             : 
      43             :     protected:
      44             :         CCDATASection(CDocument const& rDocument, ::osl::Mutex const& rMutex,
      45             :                 xmlNodePtr const pNode);
      46             : 
      47             :     public:
      48             : 
      49             :         virtual void saxify(const Reference< XDocumentHandler >& i_xHandler);
      50             : 
      51           0 :         virtual Reference< XText > SAL_CALL splitText(sal_Int32 offset)
      52             :              throw (RuntimeException)
      53             :         {
      54           0 :             return CText::splitText(offset);
      55             :         }
      56             : 
      57             :          // --- delegations for XCharacterData
      58           0 :         virtual void SAL_CALL appendData(const OUString& arg)
      59             :             throw (RuntimeException, DOMException)
      60             :         {
      61           0 :             CCharacterData::appendData(arg);
      62           0 :         }
      63           0 :         virtual void SAL_CALL deleteData(sal_Int32 offset, sal_Int32 count)
      64             :             throw (RuntimeException, DOMException)
      65             :         {
      66           0 :             CCharacterData::deleteData(offset, count);
      67           0 :         }
      68           0 :         virtual OUString SAL_CALL getData() throw (RuntimeException)
      69             :         {
      70           0 :             return CCharacterData::getData();
      71             :         }
      72           0 :         virtual sal_Int32 SAL_CALL getLength() throw (RuntimeException)
      73             :         {
      74           0 :             return CCharacterData::getLength();
      75             :         }
      76           0 :         virtual void SAL_CALL insertData(sal_Int32 offset, const OUString& arg)
      77             :             throw (RuntimeException, DOMException)
      78             :         {
      79           0 :             CCharacterData::insertData(offset, arg);
      80           0 :         }
      81           0 :         virtual void SAL_CALL replaceData(sal_Int32 offset, sal_Int32 count, const OUString& arg)
      82             :             throw (RuntimeException, DOMException)
      83             :         {
      84           0 :             CCharacterData::replaceData(offset, count, arg);
      85           0 :         }
      86           0 :         virtual void SAL_CALL setData(const OUString& data)
      87             :             throw (RuntimeException, DOMException)
      88             :         {
      89           0 :             CCharacterData::setData(data);
      90           0 :         }
      91           0 :         virtual OUString SAL_CALL subStringData(sal_Int32 offset, sal_Int32 count)
      92             :             throw (RuntimeException, DOMException)
      93             :         {
      94           0 :             return CCharacterData::subStringData(offset, count);
      95             :         }
      96             : 
      97             : 
      98             :          // --- overrides for XNode base
      99             :         virtual OUString SAL_CALL getNodeName()
     100             :             throw (RuntimeException);
     101             :         virtual OUString SAL_CALL getNodeValue()
     102             :             throw (RuntimeException);
     103             : 
     104             :     // --- delegation for XNde base.
     105           0 :     virtual Reference< XNode > SAL_CALL appendChild(const Reference< XNode >& newChild)
     106             :         throw (RuntimeException, DOMException)
     107             :     {
     108           0 :         return CNode::appendChild(newChild);
     109             :     }
     110           0 :     virtual Reference< XNode > SAL_CALL cloneNode(sal_Bool deep)
     111             :         throw (RuntimeException)
     112             :     {
     113           0 :         return CNode::cloneNode(deep);
     114             :     }
     115           0 :     virtual Reference< XNamedNodeMap > SAL_CALL getAttributes()
     116             :         throw (RuntimeException)
     117             :     {
     118           0 :         return CNode::getAttributes();
     119             :     }
     120           0 :     virtual Reference< XNodeList > SAL_CALL getChildNodes()
     121             :         throw (RuntimeException)
     122             :     {
     123           0 :         return CNode::getChildNodes();
     124             :     }
     125           0 :     virtual Reference< XNode > SAL_CALL getFirstChild()
     126             :         throw (RuntimeException)
     127             :     {
     128           0 :         return CNode::getFirstChild();
     129             :     }
     130           0 :     virtual Reference< XNode > SAL_CALL getLastChild()
     131             :         throw (RuntimeException)
     132             :     {
     133           0 :         return CNode::getLastChild();
     134             :     }
     135           0 :     virtual OUString SAL_CALL getLocalName()
     136             :         throw (RuntimeException)
     137             :     {
     138           0 :         return CNode::getLocalName();
     139             :     }
     140           0 :     virtual OUString SAL_CALL getNamespaceURI()
     141             :         throw (RuntimeException)
     142             :     {
     143           0 :         return CNode::getNamespaceURI();
     144             :     }
     145           0 :     virtual Reference< XNode > SAL_CALL getNextSibling()
     146             :         throw (RuntimeException)
     147             :     {
     148           0 :         return CNode::getNextSibling();
     149             :     }
     150           0 :     virtual NodeType SAL_CALL getNodeType()
     151             :         throw (RuntimeException)
     152             :     {
     153           0 :         return CNode::getNodeType();
     154             :     }
     155           0 :     virtual Reference< XDocument > SAL_CALL getOwnerDocument()
     156             :         throw (RuntimeException)
     157             :     {
     158           0 :         return CNode::getOwnerDocument();
     159             :     }
     160           0 :     virtual Reference< XNode > SAL_CALL getParentNode()
     161             :         throw (RuntimeException)
     162             :     {
     163           0 :         return CNode::getParentNode();
     164             :     }
     165           0 :     virtual OUString SAL_CALL getPrefix()
     166             :         throw (RuntimeException)
     167             :     {
     168           0 :         return CNode::getPrefix();
     169             :     }
     170           0 :     virtual Reference< XNode > SAL_CALL getPreviousSibling()
     171             :         throw (RuntimeException)
     172             :     {
     173           0 :         return CNode::getPreviousSibling();
     174             :     }
     175           0 :     virtual sal_Bool SAL_CALL hasAttributes()
     176             :         throw (RuntimeException)
     177             :     {
     178           0 :         return CNode::hasAttributes();
     179             :     }
     180           0 :     virtual sal_Bool SAL_CALL hasChildNodes()
     181             :         throw (RuntimeException)
     182             :     {
     183           0 :         return CNode::hasChildNodes();
     184             :     }
     185           0 :     virtual Reference< XNode > SAL_CALL insertBefore(
     186             :             const Reference< XNode >& newChild, const Reference< XNode >& refChild)
     187             :         throw (RuntimeException, DOMException)
     188             :     {
     189           0 :         return CNode::insertBefore(newChild, refChild);
     190             :     }
     191           0 :     virtual sal_Bool SAL_CALL isSupported(const OUString& feature, const OUString& ver)
     192             :         throw (RuntimeException)
     193             :     {
     194           0 :         return CNode::isSupported(feature, ver);
     195             :     }
     196           0 :     virtual void SAL_CALL normalize()
     197             :         throw (RuntimeException)
     198             :     {
     199           0 :         CNode::normalize();
     200           0 :     }
     201           0 :     virtual Reference< XNode > SAL_CALL removeChild(const Reference< XNode >& oldChild)
     202             :         throw (RuntimeException, DOMException)
     203             :     {
     204           0 :         return CNode::removeChild(oldChild);
     205             :     }
     206           0 :     virtual Reference< XNode > SAL_CALL replaceChild(
     207             :             const Reference< XNode >& newChild, const Reference< XNode >& oldChild)
     208             :         throw (RuntimeException, DOMException)
     209             :     {
     210           0 :         return CNode::replaceChild(newChild, oldChild);
     211             :     }
     212           0 :     virtual void SAL_CALL setNodeValue(const OUString& nodeValue)
     213             :         throw (RuntimeException, DOMException)
     214             :     {
     215           0 :         return CText::setNodeValue(nodeValue);
     216             :     }
     217           0 :     virtual void SAL_CALL setPrefix(const OUString& prefix)
     218             :         throw (RuntimeException, DOMException)
     219             :     {
     220           0 :         return CNode::setPrefix(prefix);
     221             :     }
     222             : 
     223             :     };
     224             : 
     225             : }
     226             : 
     227             : #endif
     228             : 
     229             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10