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

Generated by: LCOV version 1.10