LCOV - code coverage report
Current view: top level - libreoffice/oox/source/core - contexthandler.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 29 47 61.7 %
Date: 2012-12-17 Functions: 13 23 56.5 %
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             : #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        5982 : ContextHandler::ContextHandler( const ContextHandler& rParent ) :
      37             :     ContextHandler_BASE(),
      38        5982 :     mxBaseData( rParent.mxBaseData )
      39             : {
      40        5982 : }
      41             : 
      42         500 : ContextHandler::ContextHandler( const FragmentBaseDataRef& rxBaseData ) :
      43         500 :     mxBaseData( rxBaseData )
      44             : {
      45         500 : }
      46             : 
      47        6482 : ContextHandler::~ContextHandler()
      48             : {
      49        6482 : }
      50             : 
      51         738 : XmlFilterBase& ContextHandler::getFilter() const
      52             : {
      53         738 :     return mxBaseData->mrFilter;
      54             : }
      55             : 
      56         240 : const Relations& ContextHandler::getRelations() const
      57             : {
      58         240 :     return *mxBaseData->mxRelations;
      59             : }
      60             : 
      61         856 : const OUString& ContextHandler::getFragmentPath() const
      62             : {
      63         856 :     return mxBaseData->maFragmentPath;
      64             : }
      65             : 
      66          50 : OUString ContextHandler::getFragmentPathFromRelation( const Relation& rRelation ) const
      67             : {
      68          50 :     return mxBaseData->mxRelations->getFragmentPathFromRelation( rRelation );
      69             : }
      70             : 
      71          66 : OUString ContextHandler::getFragmentPathFromRelId( const OUString& rRelId ) const
      72             : {
      73          66 :     return mxBaseData->mxRelations->getFragmentPathFromRelId( rRelId );
      74             : }
      75             : 
      76         224 : OUString ContextHandler::getFragmentPathFromFirstType( const OUString& rType ) const
      77             : {
      78         224 :     return mxBaseData->mxRelations->getFragmentPathFromFirstType( rType );
      79             : }
      80             : 
      81         302 : void ContextHandler::implSetLocator( const Reference< XLocator >& rxLocator )
      82             : {
      83         302 :     mxBaseData->mxLocator = rxLocator;
      84         302 : }
      85             : 
      86             : // com.sun.star.xml.sax.XFastContextHandler interface -------------------------
      87             : 
      88        6108 : void ContextHandler::startFastElement( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
      89             : {
      90        6108 : }
      91             : 
      92           0 : void ContextHandler::startUnknownElement( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
      93             : {
      94           0 : }
      95             : 
      96        3060 : void ContextHandler::endFastElement( sal_Int32 ) throw( SAXException, RuntimeException )
      97             : {
      98        3060 : }
      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         736 : void ContextHandler::characters( const OUString& ) throw( SAXException, RuntimeException )
     115             : {
     116         736 : }
     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