1*9e0e4191SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*9e0e4191SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*9e0e4191SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*9e0e4191SAndrew Rist * distributed with this work for additional information
6*9e0e4191SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*9e0e4191SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*9e0e4191SAndrew Rist * "License"); you may not use this file except in compliance
9*9e0e4191SAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*9e0e4191SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*9e0e4191SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*9e0e4191SAndrew Rist * software distributed under the License is distributed on an
15*9e0e4191SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*9e0e4191SAndrew Rist * KIND, either express or implied. See the License for the
17*9e0e4191SAndrew Rist * specific language governing permissions and limitations
18*9e0e4191SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*9e0e4191SAndrew Rist *************************************************************/
21*9e0e4191SAndrew Rist
22*9e0e4191SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir #include "sal/types.h"
25cdf0e10cSrcweir #include <cppuhelper/factory.hxx>
26cdf0e10cSrcweir #include <osl/diagnose.h>
27cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx>
28cdf0e10cSrcweir #include "ReportDefinition.hxx"
29cdf0e10cSrcweir #include "FormattedField.hxx"
30cdf0e10cSrcweir #include "FixedText.hxx"
31cdf0e10cSrcweir #include "ImageControl.hxx"
32cdf0e10cSrcweir #include "FormatCondition.hxx"
33cdf0e10cSrcweir #include "ReportEngineJFree.hxx"
34cdf0e10cSrcweir #include "Function.hxx"
35cdf0e10cSrcweir #include "Shape.hxx"
36cdf0e10cSrcweir #include "FixedLine.hxx"
37cdf0e10cSrcweir
38cdf0e10cSrcweir /********************************************************************************************/
39cdf0e10cSrcweir
40cdf0e10cSrcweir using namespace ::reportdesign;
41cdf0e10cSrcweir using namespace ::com::sun::star::uno;
42cdf0e10cSrcweir using namespace ::com::sun::star::lang;
43cdf0e10cSrcweir using namespace ::com::sun::star::registry;
44cdf0e10cSrcweir
45cdf0e10cSrcweir //***************************************************************************************
46cdf0e10cSrcweir //
47cdf0e10cSrcweir // registry functions
48cdf0e10cSrcweir namespace
49cdf0e10cSrcweir {
50cdf0e10cSrcweir
51cdf0e10cSrcweir cppu::ImplementationEntry entries[] = {
52cdf0e10cSrcweir { &OReportDefinition::create, &OReportDefinition::getImplementationName_Static, &OReportDefinition::getSupportedServiceNames_Static,
53cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
54cdf0e10cSrcweir { &OFormattedField::create, &OFormattedField::getImplementationName_Static, &OFormattedField::getSupportedServiceNames_Static,
55cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
56cdf0e10cSrcweir { &OFixedText::create, &OFixedText::getImplementationName_Static, &OFixedText::getSupportedServiceNames_Static,
57cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
58cdf0e10cSrcweir { &OImageControl::create, &OImageControl::getImplementationName_Static, &OImageControl::getSupportedServiceNames_Static,
59cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
60cdf0e10cSrcweir { &OFormatCondition::create, &OFormatCondition::getImplementationName_Static, &OFormatCondition::getSupportedServiceNames_Static,
61cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
62cdf0e10cSrcweir { &OReportEngineJFree::create, &OReportEngineJFree::getImplementationName_Static, &OReportEngineJFree::getSupportedServiceNames_Static,
63cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
64cdf0e10cSrcweir { &OFunction::create, &OFunction::getImplementationName_Static, &OFunction::getSupportedServiceNames_Static,
65cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
66cdf0e10cSrcweir { &OShape::create, &OShape::getImplementationName_Static, &OShape::getSupportedServiceNames_Static,
67cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
68cdf0e10cSrcweir { &OFixedLine::create, &OFixedLine::getImplementationName_Static, &OFixedLine::getSupportedServiceNames_Static,
69cdf0e10cSrcweir &cppu::createSingleComponentFactory, 0, 0 },
70cdf0e10cSrcweir { 0, 0, 0, 0, 0, 0 }
71cdf0e10cSrcweir };
72cdf0e10cSrcweir }
73cdf0e10cSrcweir
74cdf0e10cSrcweir extern "C"
75cdf0e10cSrcweir {
component_getFactory(char const * implName,void * serviceManager,void * registryKey)76cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
77cdf0e10cSrcweir char const * implName, void * serviceManager, void * registryKey)
78cdf0e10cSrcweir {
79cdf0e10cSrcweir return cppu::component_getFactoryHelper(
80cdf0e10cSrcweir implName, serviceManager, registryKey, entries);
81cdf0e10cSrcweir }
82cdf0e10cSrcweir
component_getImplementationEnvironment(char const ** envTypeName,uno_Environment **)83cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
84cdf0e10cSrcweir char const ** envTypeName, uno_Environment **)
85cdf0e10cSrcweir {
86cdf0e10cSrcweir *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
87cdf0e10cSrcweir }
88cdf0e10cSrcweir
89cdf0e10cSrcweir } // extern "C"
90