LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/oox/source/core - contexthandler.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 23 47 48.9 %
Date: 2013-07-09 Functions: 10 23 43.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             : 
      33             : // ============================================================================
      34             : 
      35        7456 : ContextHandler::ContextHandler( const ContextHandler& rParent ) :
      36             :     ContextHandler_BASE(),
      37        7456 :     mxBaseData( rParent.mxBaseData )
      38             : {
      39        7456 : }
      40             : 
      41         455 : ContextHandler::ContextHandler( const FragmentBaseDataRef& rxBaseData ) :
      42         455 :     mxBaseData( rxBaseData )
      43             : {
      44         455 : }
      45             : 
      46        7896 : ContextHandler::~ContextHandler()
      47             : {
      48        7896 : }
      49             : 
      50         658 : XmlFilterBase& ContextHandler::getFilter() const
      51             : {
      52         658 :     return mxBaseData->mrFilter;
      53             : }
      54             : 
      55         202 : const Relations& ContextHandler::getRelations() const
      56             : {
      57         202 :     return *mxBaseData->mxRelations;
      58             : }
      59             : 
      60         784 : const OUString& ContextHandler::getFragmentPath() const
      61             : {
      62         784 :     return mxBaseData->maFragmentPath;
      63             : }
      64             : 
      65          43 : OUString ContextHandler::getFragmentPathFromRelation( const Relation& rRelation ) const
      66             : {
      67          43 :     return mxBaseData->mxRelations->getFragmentPathFromRelation( rRelation );
      68             : }
      69             : 
      70          52 : OUString ContextHandler::getFragmentPathFromRelId( const OUString& rRelId ) const
      71             : {
      72          52 :     return mxBaseData->mxRelations->getFragmentPathFromRelId( rRelId );
      73             : }
      74             : 
      75         222 : OUString ContextHandler::getFragmentPathFromFirstType( const OUString& rType ) const
      76             : {
      77         222 :     return mxBaseData->mxRelations->getFragmentPathFromFirstType( rType );
      78             : }
      79             : 
      80         284 : void ContextHandler::implSetLocator( const Reference< XLocator >& rxLocator )
      81             : {
      82         284 :     mxBaseData->mxLocator = rxLocator;
      83         284 : }
      84             : 
      85             : // com.sun.star.xml.sax.XFastContextHandler interface -------------------------
      86             : 
      87           0 : void ContextHandler::startFastElement( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
      88             : {
      89           0 : }
      90             : 
      91           0 : void ContextHandler::startUnknownElement( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
      92             : {
      93           0 : }
      94             : 
      95           0 : void ContextHandler::endFastElement( sal_Int32 ) throw( SAXException, RuntimeException )
      96             : {
      97           0 : }
      98             : 
      99           0 : void ContextHandler::endUnknownElement( const OUString&, const OUString& ) throw( SAXException, RuntimeException )
     100             : {
     101           0 : }
     102             : 
     103           0 : Reference< XFastContextHandler > ContextHandler::createFastChildContext( sal_Int32, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
     104             : {
     105           0 :     return 0;
     106             : }
     107             : 
     108           0 : Reference< XFastContextHandler > ContextHandler::createUnknownChildContext( const OUString&, const OUString&, const Reference< XFastAttributeList >& ) throw( SAXException, RuntimeException )
     109             : {
     110           0 :     return 0;
     111             : }
     112             : 
     113           0 : void ContextHandler::characters( const OUString& ) throw( SAXException, RuntimeException )
     114             : {
     115           0 : }
     116             : 
     117           0 : void ContextHandler::ignorableWhitespace( const OUString& ) throw( SAXException, RuntimeException )
     118             : {
     119           0 : }
     120             : 
     121           0 : void ContextHandler::processingInstruction( const OUString&, const OUString& ) throw( SAXException, RuntimeException )
     122             : {
     123           0 : }
     124             : 
     125             : // record context interface ---------------------------------------------------
     126             : 
     127           0 : ContextHandlerRef ContextHandler::createRecordContext( sal_Int32, SequenceInputStream& )
     128             : {
     129           0 :     return 0;
     130             : }
     131             : 
     132           0 : void ContextHandler::startRecord( sal_Int32, SequenceInputStream& )
     133             : {
     134           0 : }
     135             : 
     136           0 : void ContextHandler::endRecord( sal_Int32 )
     137             : {
     138           0 : }
     139             : 
     140             : // ============================================================================
     141             : 
     142             : } // namespace core
     143             : } // namespace oox
     144             : 
     145             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10