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 : : #ifndef _CPPUHELPTER_FACTORY_
21 : : #include <cppuhelper/factory.hxx>
22 : : #endif
23 : : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
24 : :
25 : : #ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_
26 : : #include <cppuhelper/implementationentry.hxx>
27 : : #endif
28 : : #include <debugservices/doctok/DocTokTestService.hxx>
29 : : #include <debugservices/doctok/DocTokAnalyzeService.hxx>
30 : : #include <debugservices/ooxml/OOXMLTestService.hxx>
31 : : #include <debugservices/ooxml/OOXMLAnalyzeService.hxx>
32 : :
33 : : #include <stdio.h>
34 : :
35 : : using namespace com::sun::star;
36 : :
37 : :
38 : : extern "C"
39 : : {
40 : : /* shared lib exports implemented with helpers */
41 : : static struct ::cppu::ImplementationEntry s_component_entries [] =
42 : : {//uno -l writerfilter.uno.dll -c debugservices.rtftok.ScannerTestService -- a b c
43 : : DOCTOK_SCANNERTESTSERVICE_COMPONENT_ENTRY, /* debugservices.doctok.ScannerTestService */
44 : : DOCTOK_ANALYZESERVICE_COMPONENT_ENTRY, /* debugservices.doctok.AnalyzeService */
45 : : OOXML_SCANNERTESTSERVICE_COMPONENT_ENTRY, /* debugservices.ooxml.ScannerTestService */
46 : : OOXML_ANALYZESERVICE_COMPONENT_ENTRY, /* debugservices.ooxml.AnalyzeService */
47 : : { 0, 0, 0, 0, 0, 0 } // terminate with NULL
48 : : };
49 : :
50 : 0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(sal_Char const * implName, ::com::sun::star::lang::XMultiServiceFactory * xMgr, ::com::sun::star::registry::XRegistryKey * xRegistry )
51 : : {
52 : 0 : fprintf(stderr, "Loading service: %s: ", implName);
53 : :
54 : 0 : void * pResult = ::cppu::component_getFactoryHelper(implName, xMgr, xRegistry, s_component_entries );
55 : :
56 : 0 : fprintf(stderr, "%p\n", pResult);
57 : :
58 : 0 : return pResult;
59 : : }
60 : :
61 : : }
62 : :
63 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|