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 : #include "sal/types.h"
20 : #include <cppuhelper/factory.hxx>
21 : #include <osl/diagnose.h>
22 : #include <cppuhelper/implementationentry.hxx>
23 : #include "ReportDefinition.hxx"
24 : #include "FormattedField.hxx"
25 : #include "FixedText.hxx"
26 : #include "ImageControl.hxx"
27 : #include "FormatCondition.hxx"
28 : #include "ReportEngineJFree.hxx"
29 : #include "Function.hxx"
30 : #include "Shape.hxx"
31 : #include "FixedLine.hxx"
32 :
33 : /********************************************************************************************/
34 :
35 : using namespace ::reportdesign;
36 : using namespace ::com::sun::star::uno;
37 : using namespace ::com::sun::star::lang;
38 : using namespace ::com::sun::star::registry;
39 :
40 :
41 :
42 : // registry functions
43 : namespace
44 : {
45 :
46 : cppu::ImplementationEntry entries[] = {
47 : { &OReportDefinition::create, &OReportDefinition::getImplementationName_Static, &OReportDefinition::getSupportedServiceNames_Static,
48 : &cppu::createSingleComponentFactory, 0, 0 },
49 : { &OFormattedField::create, &OFormattedField::getImplementationName_Static, &OFormattedField::getSupportedServiceNames_Static,
50 : &cppu::createSingleComponentFactory, 0, 0 },
51 : { &OFixedText::create, &OFixedText::getImplementationName_Static, &OFixedText::getSupportedServiceNames_Static,
52 : &cppu::createSingleComponentFactory, 0, 0 },
53 : { &OImageControl::create, &OImageControl::getImplementationName_Static, &OImageControl::getSupportedServiceNames_Static,
54 : &cppu::createSingleComponentFactory, 0, 0 },
55 : { &OFormatCondition::create, &OFormatCondition::getImplementationName_Static, &OFormatCondition::getSupportedServiceNames_Static,
56 : &cppu::createSingleComponentFactory, 0, 0 },
57 : { &OReportEngineJFree::create, &OReportEngineJFree::getImplementationName_Static, &OReportEngineJFree::getSupportedServiceNames_Static,
58 : &cppu::createSingleComponentFactory, 0, 0 },
59 : { &OFunction::create, &OFunction::getImplementationName_Static, &OFunction::getSupportedServiceNames_Static,
60 : &cppu::createSingleComponentFactory, 0, 0 },
61 : { &OShape::create, &OShape::getImplementationName_Static, &OShape::getSupportedServiceNames_Static,
62 : &cppu::createSingleComponentFactory, 0, 0 },
63 : { &OFixedLine::create, &OFixedLine::getImplementationName_Static, &OFixedLine::getSupportedServiceNames_Static,
64 : &cppu::createSingleComponentFactory, 0, 0 },
65 : { 0, 0, 0, 0, 0, 0 }
66 : };
67 : }
68 :
69 : extern "C"
70 : {
71 0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL rpt_component_getFactory(
72 : char const * implName, void * serviceManager, void * registryKey)
73 : {
74 : return cppu::component_getFactoryHelper(
75 0 : implName, serviceManager, registryKey, entries);
76 : }
77 :
78 : } // extern "C"
79 :
80 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|