LibreOffice Module writerfilter (master) 1
DomainMapperFactory.hxx
Go to the documentation of this file.
1/*
2 * This file is part of the LibreOffice project.
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9#pragma once
10
11#include <vector>
12
14#include <com/sun/star/io/XInputStream.hpp>
15#include <com/sun/star/lang/XComponent.hpp>
16#include <com/sun/star/uno/XComponentContext.hpp>
17
18namespace utl
19{
20class MediaDescriptor;
21}
22
24{
26{
27 OOXML,
28 RTF
29};
30
33{
34public:
36 createMapper(css::uno::Reference<css::uno::XComponentContext> const& xContext,
37 css::uno::Reference<css::io::XInputStream> const& xInputStream,
38 css::uno::Reference<css::lang::XComponent> const& xModel, bool bRepairStorage,
39 SourceDocumentType eDocumentType, utl::MediaDescriptor const& rMediaDesc);
40};
41
42// export just for test
43SAL_DLLPUBLIC_EXPORT std::tuple<OUString, std::vector<OUString>, std::vector<OUString>>
44splitFieldCommand(std::u16string_view rCommand);
45
46} // namespace writerfilter::dmapper
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Interface to create a DomainMapper instance.
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)
OOXML
std::tuple< OUString, std::vector< OUString >, std::vector< OUString > > splitFieldCommand(std::u16string_view rCommand)
The classes in this file define the interfaces for the resource model of the DocTokenizer:
Reference< XModel > xModel