Branch data Line data Source code
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 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : :
20 : : #include <osl/diagnose.h>
21 : : #include <cppuhelper/factory.hxx>
22 : : #include <cppuhelper/implementationentry.hxx>
23 : :
24 : : #include <com/sun/star/registry/XRegistryKey.hpp>
25 : :
26 : : using namespace ::rtl;
27 : : using namespace ::cppu;
28 : : using namespace ::com::sun::star::uno;
29 : : using namespace ::com::sun::star::lang;
30 : : using namespace ::com::sun::star::registry;
31 : :
32 : : #include "factreg.hxx"
33 : :
34 : : namespace animcore
35 : : {
36 : : rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT;
37 : : }
38 : :
39 : : using namespace animcore;
40 : :
41 : : #define IMPLEMENTATION_ENTRY(N)\
42 : : {\
43 : : createInstance_##N, getImplementationName_##N ,\
44 : : getSupportedServiceNames_##N, createSingleComponentFactory ,\
45 : : &g_moduleCount.modCnt , 0\
46 : : }\
47 : :
48 : : static struct ImplementationEntry g_entries[] =
49 : : {
50 : : IMPLEMENTATION_ENTRY( PAR ),
51 : : IMPLEMENTATION_ENTRY( SEQ ),
52 : : IMPLEMENTATION_ENTRY( ITERATE ),
53 : : IMPLEMENTATION_ENTRY( ANIMATE ),
54 : : IMPLEMENTATION_ENTRY( SET ),
55 : : IMPLEMENTATION_ENTRY( ANIMATECOLOR ),
56 : : IMPLEMENTATION_ENTRY( ANIMATEMOTION ),
57 : : IMPLEMENTATION_ENTRY( ANIMATETRANSFORM ),
58 : : IMPLEMENTATION_ENTRY( TRANSITIONFILTER ),
59 : : IMPLEMENTATION_ENTRY( AUDIO ),
60 : : IMPLEMENTATION_ENTRY( COMMAND ),
61 : : IMPLEMENTATION_ENTRY( TargetPropertiesCreator ),
62 : : { 0, 0, 0, 0, 0, 0 }
63 : : };
64 : :
65 : : extern "C"
66 : : {
67 : :
68 : 6 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL animcore_component_getFactory(
69 : : const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
70 : : {
71 : 6 : return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
72 : : }
73 : :
74 : : }
75 : :
76 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|