1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <osl/diagnose.h>
21 #include <cppuhelper/factory.hxx>
22 #include <cppuhelper/implementationentry.hxx>
24 #include <com/sun/star/registry/XRegistryKey.hpp>
26 #include "services.hxx"
28 using namespace ::rtl
;
29 using namespace ::cppu
;
30 using namespace ::com::sun::star::uno
;
31 using namespace ::com::sun::star::lang
;
32 using namespace ::com::sun::star::registry
;
34 static const struct ImplementationEntry g_entries
[] =
37 io_acceptor::acceptor_CreateInstance
, io_acceptor::acceptor_getImplementationName
,
38 io_acceptor::acceptor_getSupportedServiceNames
, createSingleComponentFactory
,
42 stoc_connector::connector_CreateInstance
, stoc_connector::connector_getImplementationName
,
43 stoc_connector::connector_getSupportedServiceNames
, createSingleComponentFactory
,
47 io_stm::OPipeImpl_CreateInstance
, io_stm::OPipeImpl_getImplementationName
,
48 io_stm::OPipeImpl_getSupportedServiceNames
, createSingleComponentFactory
,
52 io_stm::OPumpImpl_CreateInstance
, io_stm::OPumpImpl_getImplementationName
,
53 io_stm::OPumpImpl_getSupportedServiceNames
, createSingleComponentFactory
,
57 io_stm::ODataInputStream_CreateInstance
, io_stm::ODataInputStream_getImplementationName
,
58 io_stm::ODataInputStream_getSupportedServiceNames
, createSingleComponentFactory
,
62 io_stm::ODataOutputStream_CreateInstance
, io_stm::ODataOutputStream_getImplementationName
,
63 io_stm::ODataOutputStream_getSupportedServiceNames
, createSingleComponentFactory
,
67 io_stm::OObjectInputStream_CreateInstance
, io_stm::OObjectInputStream_getImplementationName
,
68 io_stm::OObjectInputStream_getSupportedServiceNames
, createSingleComponentFactory
,
72 io_stm::OObjectOutputStream_CreateInstance
, io_stm::OObjectOutputStream_getImplementationName
,
73 io_stm::OObjectOutputStream_getSupportedServiceNames
, createSingleComponentFactory
,
77 io_stm::OMarkableInputStream_CreateInstance
, io_stm::OMarkableInputStream_getImplementationName
,
78 io_stm::OMarkableInputStream_getSupportedServiceNames
, createSingleComponentFactory
,
82 io_stm::OMarkableOutputStream_CreateInstance
, io_stm::OMarkableOutputStream_getImplementationName
,
83 io_stm::OMarkableOutputStream_getSupportedServiceNames
, createSingleComponentFactory
,
87 io_TextInputStream::TextInputStream_CreateInstance
, io_TextInputStream::TextInputStream_getImplementationName
,
88 io_TextInputStream::TextInputStream_getSupportedServiceNames
, createSingleComponentFactory
,
92 io_TextOutputStream::TextOutputStream_CreateInstance
, io_TextOutputStream::TextOutputStream_getImplementationName
,
93 io_TextOutputStream::TextOutputStream_getSupportedServiceNames
, createSingleComponentFactory
,
99 extern "C" SAL_DLLPUBLIC_EXPORT
void * SAL_CALL
io_component_getFactory(
100 const sal_Char
* pImplName
, void * pServiceManager
, void * pRegistryKey
)
102 return component_getFactoryHelper( pImplName
, pServiceManager
, pRegistryKey
, g_entries
);
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */