LCOV - code coverage report
Current view: top level - writerfilter/source/dmapper - domainmapperfactory.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 100.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             : 
      10             : #include <DomainMapper.hxx>
      11             : #include <unotools/mediadescriptor.hxx>
      12             : 
      13             : namespace writerfilter
      14             : {
      15             : namespace dmapper
      16             : {
      17             : 
      18        1985 : Stream::Pointer_t DomainMapperFactory::createMapper(css::uno::Reference<css::uno::XComponentContext> const& xContext,
      19             :         css::uno::Reference<css::io::XInputStream> const& xInputStream,
      20             :         css::uno::Reference<css::lang::XComponent> const& xModel,
      21             :         bool bRepairStorage,
      22             :         SourceDocumentType eDocumentType,
      23             :         css::uno::Reference<css::text::XTextRange> const& xInsertTextRange,
      24             :         utl::MediaDescriptor& rMediaDesc)
      25             : {
      26             : #ifdef DEBUG_WRITERFILTER
      27             :     OUString sURL = rMediaDesc.getUnpackedValueOrDefault(utl::MediaDescriptor::PROP_URL(), OUString());
      28             :     ::std::string sURLc = OUStringToOString(sURL, RTL_TEXTENCODING_ASCII_US).getStr();
      29             : 
      30             :     if (getenv("SW_DEBUG_WRITERFILTER"))
      31             :         TagLogger::getInstance().setFileName(sURLc);
      32             :     TagLogger::getInstance().startDocument();
      33             : #endif
      34             : 
      35        1985 :     return Stream::Pointer_t(new DomainMapper(xContext, xInputStream, xModel, bRepairStorage, eDocumentType, xInsertTextRange, rMediaDesc));
      36             : }
      37             : 
      38             : } // namespace dmapper
      39             : } // namespace writerfilter
      40             : 
      41             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11