lok: vcl: fix multiple floatwin removal case more robustly.
[LibreOffice.git] / writerfilter / source / dmapper / domainmapperfactory.cxx
blob1d3ee6039c61c582f2af7cabcd63445c7aad6507
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include "DomainMapper.hxx"
11 #include <unotools/mediadescriptor.hxx>
13 namespace writerfilter
15 namespace dmapper
18 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 utl::MediaDescriptor const& rMediaDesc)
25 #ifdef DEBUG_WRITERFILTER
26 OUString sURL = rMediaDesc.getUnpackedValueOrDefault(utl::MediaDescriptor::PROP_URL(), OUString());
27 ::std::string sURLc = OUStringToOString(sURL, RTL_TEXTENCODING_ASCII_US).getStr();
29 if (getenv("SW_DEBUG_WRITERFILTER"))
30 TagLogger::getInstance().setFileName(sURLc);
31 TagLogger::getInstance().startDocument();
32 #endif
34 return Stream::Pointer_t(new DomainMapper(xContext, xInputStream, xModel, bRepairStorage, eDocumentType, rMediaDesc));
37 } // namespace dmapper
38 } // namespace writerfilter
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */