LCOV - code coverage report
Current view: top level - oox/source/core - contexthandler.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 29 47 61.7 %
Date: 2012-08-25 Functions: 13 23 56.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 8 50.0 %

           Branch data     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                 :            : #include "oox/core/contexthandler.hxx"
      21                 :            : 
      22                 :            : #include "oox/core/fragmenthandler.hxx"
      23                 :            : 
      24                 :            : namespace oox {
      25                 :            : namespace core {
      26                 :            : 
      27                 :            : // ============================================================================
      28                 :            : 
      29                 :            : using namespace ::com::sun::star::uno;
      30                 :            : using namespace ::com::sun::star::xml::sax;
      31                 :            : 
      32                 :            : using ::rtl::OUString;
      33                 :            : 
      34                 :            : // ============================================================================
      35                 :            : 
      36                 :       5832 : ContextHandler::ContextHandler( const ContextHandler& rParent ) :
      37                 :            :     ContextHandler_BASE(),
      38         [ +  - ]:       5832 :     mxBaseData( rParent.mxBaseData )
      39                 :            : {
      40                 :       5832 : }
      41                 :            : 
      42                 :        531 : ContextHandler::ContextHandler( const FragmentBaseDataRef& rxBaseData ) :
      43         [ +  - ]:        531 :     mxBaseData( rxBaseData )
      44                 :            : {
      45                 :        531 : }
      46                 :            : 
      47         [ +  - ]:       6363 : ContextHandler::~ContextHandler()
      48                 :            : {
      49         [ -  + ]:       6363 : }
      50                 :            : 
      51                 :        780 : XmlFilterBase& ContextHandler::getFilter() const
      52                 :            : {
      53                 :        780 :     return mxBaseData->mrFilter;
      54                 :            : }
      55                 :            : 
      56                 :        285 : const Relations& ContextHandler::getRelations() const
      57                 :            : {
      58                 :        285 :     return *mxBaseData->mxRelations;
      59                 :            : }
      60                 :            : 
      61                 :        954 : const OUString& ContextHandler::getFragmentPath() const
      62                 :            : {
      63                 :        954 :     return mxBaseData->maFragmentPath;
      64                 :            : }
      65                 :            : 
      66                 :         60 : OUString ContextHandler::getFragmentPathFromRelation( const Relation& rRelation ) const
      67                 :            : {
      68                 :         60 :     return mxBaseData->mxRelations->getFragmentPathFromRelation( rRelation );
      69                 :            : }
      70                 :            : 
      71                 :         63 : OUString ContextHandler::getFragmentPathFromRelId( const OUString& rRelId ) const
      72                 :            : {
      73                 :         63 :     return mxBaseData->mxRelations->getFragmentPathFromRelId( rRelId );
      74                 :            : }
      75                 :            : 
      76                 :        255 : OUString ContextHandler::getFragmentPathFromFirstType( const OUString& rType ) const
      77                 :            : {
      78                 :        255 :     return mxBaseData->mxRelations->getFragmentPathFromFirstType( rType );
      79                 :            : }
      80                 :            : 
      81                 :        333 : void ContextHandler::implSetLocator( const Reference< XLocator >& rxLocator )
      82                 :            : {
      83                 :        333 :     mxBaseData->mxLocator = rxLocator;
      84                 :        333 : }
      85                 :            : 
      86                 :            : // com.sun.star.xml.sax.XFastContextHandler interface -------------------------
      87                 :            : 
      88                 :       6147 : void ContextHandler::startFastElement( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
      89                 :            : {
      90                 :       6147 : }
      91                 :            : 
      92                 :          0 : void ContextHandler::startUnknownElement( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
      93                 :            : {
      94                 :          0 : }
      95                 :            : 
      96                 :       2958 : void ContextHandler::endFastElement( sal_Int32 ) throw( SAXException, RuntimeException )
      97                 :            : {
      98                 :       2958 : }
      99                 :            : 
     100                 :          0 : void ContextHandler::endUnknownElement( const OUString&, const OUString& ) throw( SAXException, RuntimeException )
     101                 :            : {
     102                 :          0 : }
     103                 :            : 
     104                 :          0 : Reference< XFastContextHandler > ContextHandler::createFastChildContext( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
     105                 :            : {
     106                 :          0 :     return 0;
     107                 :            : }
     108                 :            : 
     109                 :          0 : Reference< XFastContextHandler > ContextHandler::createUnknownChildContext( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
     110                 :            : {
     111                 :          0 :     return 0;
     112                 :            : }
     113                 :            : 
     114                 :        654 : void ContextHandler::characters( const OUString& ) throw( SAXException, RuntimeException )
     115                 :            : {
     116                 :        654 : }
     117                 :            : 
     118                 :          0 : void ContextHandler::ignorableWhitespace( const OUString& ) throw( SAXException, RuntimeException )
     119                 :            : {
     120                 :          0 : }
     121                 :            : 
     122                 :          0 : void ContextHandler::processingInstruction( const OUString&, const OUString& ) throw( SAXException, RuntimeException )
     123                 :            : {
     124                 :          0 : }
     125                 :            : 
     126                 :            : // record context interface ---------------------------------------------------
     127                 :            : 
     128                 :          0 : ContextHandlerRef ContextHandler::createRecordContext( sal_Int32, SequenceInputStream& )
     129                 :            : {
     130                 :          0 :     return 0;
     131                 :            : }
     132                 :            : 
     133                 :          0 : void ContextHandler::startRecord( sal_Int32, SequenceInputStream& )
     134                 :            : {
     135                 :          0 : }
     136                 :            : 
     137                 :          0 : void ContextHandler::endRecord( sal_Int32 )
     138                 :            : {
     139                 :          0 : }
     140                 :            : 
     141                 :            : // ============================================================================
     142                 :            : 
     143                 :            : } // namespace core
     144                 :            : } // namespace oox
     145                 :            : 
     146                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10