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