LCOV - code coverage report
Current view: top level - xmloff/source/core - xmlictxt.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 25 33 75.8 %
Date: 2015-06-13 12:38:46 Functions: 14 21 66.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 <com/sun/star/xml/sax/SAXParseException.hpp>
      21             : #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
      22             : #include <com/sun/star/xml/sax/SAXException.hpp>
      23             : #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
      24             : #include <com/sun/star/xml/sax/XAttributeList.hpp>
      25             : #include <com/sun/star/xml/sax/XLocator.hpp>
      26             : #include <xmloff/nmspmap.hxx>
      27             : #include <xmloff/xmlimp.hxx>
      28             : #include <xmloff/xmlictxt.hxx>
      29             : 
      30             : using namespace ::com::sun::star;
      31             : 
      32        4550 : TYPEINIT0( SvXMLImportContext );
      33      244719 : SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp, sal_uInt16 nPrfx,
      34             :                               const OUString& rLName ) :
      35             :     mrImport( rImp ),
      36             :     mnPrefix( nPrfx ),
      37             :     maLocalName( rLName ),
      38      244719 :     mpRewindMap( 0 )
      39             : {
      40      244719 : }
      41             : 
      42         603 : SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp ) :
      43             :     mrImport( rImp ),
      44             :     mnPrefix ( 0 ),
      45         603 :     mpRewindMap( 0 )
      46             : {
      47         603 : }
      48             : 
      49      249124 : SvXMLImportContext::~SvXMLImportContext()
      50             : {
      51      249124 : }
      52             : 
      53        1242 : SvXMLImportContext *SvXMLImportContext::CreateChildContext( sal_uInt16 nPrefix,
      54             :                                             const OUString& rLocalName,
      55             :                                             const uno::Reference< xml::sax::XAttributeList >& xAttrList )
      56             : {
      57        1242 :     return mrImport.CreateContext( nPrefix, rLocalName, xAttrList );
      58             : }
      59             : 
      60      180193 : void SvXMLImportContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& )
      61             : {
      62      180193 : }
      63             : 
      64      119603 : void SvXMLImportContext::EndElement()
      65             : {
      66      119603 : }
      67             : 
      68       42538 : void SvXMLImportContext::Characters( const OUString& )
      69             : {
      70       42538 : }
      71             : 
      72             : // ::com::sun::star::xml::sax::XFastContextHandler:
      73         603 : void SAL_CALL SvXMLImportContext::startFastElement(sal_Int32, const uno::Reference< xml::sax::XFastAttributeList > &)
      74             :     throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
      75             : {
      76         603 : }
      77             : 
      78           0 : void SAL_CALL SvXMLImportContext::startUnknownElement(const OUString &, const OUString &,
      79             :     const uno::Reference< xml::sax::XFastAttributeList > &)
      80             :     throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
      81             : {
      82           0 : }
      83             : 
      84         603 : void SAL_CALL SvXMLImportContext::endFastElement(sal_Int32)
      85             :     throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
      86             : {
      87         603 : }
      88             : 
      89           0 : void SAL_CALL SvXMLImportContext::endUnknownElement (const OUString & , const OUString & )
      90             :     throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
      91             : {
      92           0 : }
      93             : 
      94           8 : uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createFastChildContext
      95             :     (sal_Int32 Element, const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
      96             :     throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
      97             : {
      98           8 :     return mrImport.CreateFastContext( Element, Attribs );
      99             : }
     100             : 
     101           0 : uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createUnknownChildContext
     102             :     (const OUString &, const OUString &, const uno::Reference< xml::sax::XFastAttributeList > &)
     103             :     throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
     104             : {
     105           0 :     return 0;
     106             : }
     107             : 
     108           0 : void SAL_CALL SvXMLImportContext::characters(const OUString &)
     109             :     throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
     110             : {
     111           0 : }
     112             : 
     113           3 : void SvXMLImportContext::onDemandRescueUsefulDataFromTemporary( const SvXMLImportContext& )
     114             : {
     115           3 : }
     116             : 
     117             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11