LibreOffice Module writerfilter (master) 1
domainmapperfactory.cxx
Go to the documentation of this file.
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 "TagLogger.hxx"
13
15{
17DomainMapperFactory::createMapper(css::uno::Reference<css::uno::XComponentContext> const& xContext,
18 css::uno::Reference<css::io::XInputStream> const& xInputStream,
19 css::uno::Reference<css::lang::XComponent> const& xModel,
20 bool bRepairStorage, SourceDocumentType eDocumentType,
21 utl::MediaDescriptor const& rMediaDesc)
22{
23#ifdef DBG_UTIL
24 OUString sURL
25 = rMediaDesc.getUnpackedValueOrDefault(utl::MediaDescriptor::PROP_URL, OUString());
26 ::std::string sURLc(OUStringToOString(sURL, RTL_TEXTENCODING_ASCII_US));
27
28 if (getenv("SW_DEBUG_WRITERFILTER"))
31#endif
32
33 return { new DomainMapper(xContext, xInputStream, xModel, bRepairStorage, eDocumentType,
34 rMediaDesc) };
35}
36
37} // namespace writerfilter::dmapper
38
39/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static constexpr OUStringLiteral PROP_URL
tools::SvRef< Stream > Pointer_t
Pointer to this stream.
static TagLogger & getInstance()
Definition: TagLogger.cxx:95
void setFileName(const std::string &filename)
Definition: TagLogger.cxx:42
static Stream::Pointer_t createMapper(css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::io::XInputStream > const &xInputStream, css::uno::Reference< css::lang::XComponent > const &xModel, bool bRepairStorage, SourceDocumentType eDocumentType, utl::MediaDescriptor const &rMediaDesc)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
Reference< XModel > xModel