LCOV - code coverage report
Current view: top level - xmloff/source/core - XMLBasicExportFilter.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 21 33 63.6 %
Date: 2014-11-03 Functions: 8 11 72.7 %
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 "XMLBasicExportFilter.hxx"
      21             : 
      22             : using namespace ::com::sun::star;
      23             : using namespace ::com::sun::star::uno;
      24             : 
      25             : // XMLBasicExportFilter
      26             : 
      27           4 : XMLBasicExportFilter::XMLBasicExportFilter( const Reference< xml::sax::XDocumentHandler >& rxHandler )
      28           4 :     :m_xHandler( rxHandler )
      29             : {
      30           4 : }
      31             : 
      32           8 : XMLBasicExportFilter::~XMLBasicExportFilter()
      33             : {
      34           8 : }
      35             : 
      36             : // XDocumentHandler
      37             : 
      38           4 : void XMLBasicExportFilter::startDocument()
      39             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      40             : {
      41             :     // do nothing, filter this
      42           4 : }
      43             : 
      44           4 : void XMLBasicExportFilter::endDocument()
      45             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      46             : {
      47             :     // do nothing, filter this
      48           4 : }
      49             : 
      50           4 : void XMLBasicExportFilter::startElement( const OUString& aName,
      51             :         const Reference< xml::sax::XAttributeList >& xAttribs )
      52             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      53             : {
      54           4 :     if ( m_xHandler.is() )
      55           4 :         m_xHandler->startElement( aName, xAttribs );
      56           4 : }
      57             : 
      58           4 : void XMLBasicExportFilter::endElement( const OUString& aName )
      59             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      60             : {
      61           4 :     if ( m_xHandler.is() )
      62           4 :         m_xHandler->endElement( aName );
      63           4 : }
      64             : 
      65           0 : void XMLBasicExportFilter::characters( const OUString& aChars )
      66             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      67             : {
      68           0 :     if ( m_xHandler.is() )
      69           0 :         m_xHandler->characters( aChars );
      70           0 : }
      71             : 
      72           8 : void XMLBasicExportFilter::ignorableWhitespace( const OUString& aWhitespaces )
      73             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      74             : {
      75           8 :     if ( m_xHandler.is() )
      76           8 :         m_xHandler->ignorableWhitespace( aWhitespaces );
      77           8 : }
      78             : 
      79           0 : void XMLBasicExportFilter::processingInstruction( const OUString& aTarget,
      80             :         const OUString& aData )
      81             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      82             : {
      83           0 :     if ( m_xHandler.is() )
      84           0 :         m_xHandler->processingInstruction( aTarget, aData );
      85           0 : }
      86             : 
      87           0 : void XMLBasicExportFilter::setDocumentLocator( const Reference< xml::sax::XLocator >& xLocator )
      88             :     throw (xml::sax::SAXException, RuntimeException, std::exception)
      89             : {
      90           0 :     if ( m_xHandler.is() )
      91           0 :         m_xHandler->setDocumentLocator( xLocator );
      92           0 : }
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10