2 * This file is part of the LibreOffice project.
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/.
9 #ifndef INCLUDED_WRITERFILTER_INC_DMAPPER_DOMAINMAPPERFACTORY_HXX
10 #define INCLUDED_WRITERFILTER_INC_DMAPPER_DOMAINMAPPERFACTORY_HXX
12 #include <dmapper/resourcemodel.hxx>
13 #include <com/sun/star/io/XInputStream.hpp>
14 #include <com/sun/star/lang/XComponent.hpp>
15 #include <com/sun/star/text/XTextRange.hpp>
16 #include <com/sun/star/uno/XComponentContext.hpp>
20 class MediaDescriptor
;
23 namespace writerfilter
28 enum class SourceDocumentType
34 /// Interface to create a DomainMapper instance.
35 class DomainMapperFactory
38 static Stream::Pointer_t
39 createMapper(css::uno::Reference
<css::uno::XComponentContext
> const& xContext
,
40 css::uno::Reference
<css::io::XInputStream
> const& xInputStream
,
41 css::uno::Reference
<css::lang::XComponent
> const& xModel
,
43 SourceDocumentType eDocumentType
,
44 css::uno::Reference
<css::text::XTextRange
> const& xInsertTextRange
,
45 utl::MediaDescriptor
& rMediaDesc
);
47 } // namespace dmapper
48 } // namespace writerfilter
50 #endif // INCLUDED_WRITERFILTER_INC_DMAPPER_DOMAINMAPPERFACTORY_HXX
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */