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 : using namespace animcore;
35 :
36 : #define IMPLEMENTATION_ENTRY(N)\
37 : {\
38 : createInstance_##N, getImplementationName_##N ,\
39 : getSupportedServiceNames_##N, createSingleComponentFactory ,\
40 : 0, 0\
41 : }\
42 :
43 : static const struct ImplementationEntry g_entries[] =
44 : {
45 : IMPLEMENTATION_ENTRY( PAR ),
46 : IMPLEMENTATION_ENTRY( SEQ ),
47 : IMPLEMENTATION_ENTRY( ITERATE ),
48 : IMPLEMENTATION_ENTRY( ANIMATE ),
49 : IMPLEMENTATION_ENTRY( SET ),
50 : IMPLEMENTATION_ENTRY( ANIMATECOLOR ),
51 : IMPLEMENTATION_ENTRY( ANIMATEMOTION ),
52 : IMPLEMENTATION_ENTRY( ANIMATETRANSFORM ),
53 : IMPLEMENTATION_ENTRY( TRANSITIONFILTER ),
54 : IMPLEMENTATION_ENTRY( AUDIO ),
55 : IMPLEMENTATION_ENTRY( COMMAND ),
56 : { 0, 0, 0, 0, 0, 0 }
57 : };
58 :
59 : extern "C"
60 : {
61 :
62 37 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL animcore_component_getFactory(
63 : const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
64 : {
65 37 : return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
66 : }
67 :
68 : }
69 :
70 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|