1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #include <sal/types.h>
20 #include <cppuhelper/factory.hxx>
21 #include <cppuhelper/implementationentry.hxx>
22 #include <ReportDefinition.hxx>
23 #include <FormattedField.hxx>
24 #include <FixedText.hxx>
25 #include <ImageControl.hxx>
26 #include <FormatCondition.hxx>
27 #include <ReportEngineJFree.hxx>
28 #include <Function.hxx>
30 #include <FixedLine.hxx>
32 /********************************************************************************************/
34 using namespace ::reportdesign
;
35 using namespace ::com::sun::star::lang
;
36 using namespace ::com::sun::star::registry
;
41 cppu::ImplementationEntry
const entries
[]
42 = { { &OReportDefinition::create
, &OReportDefinition::getImplementationName_Static
,
43 &OReportDefinition::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
,
45 { &OFormattedField::create
, &OFormattedField::getImplementationName_Static
,
46 &OFormattedField::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
,
48 { &OFixedText::create
, &OFixedText::getImplementationName_Static
,
49 &OFixedText::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
,
51 { &OImageControl::create
, &OImageControl::getImplementationName_Static
,
52 &OImageControl::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
,
54 { &OFormatCondition::create
, &OFormatCondition::getImplementationName_Static
,
55 &OFormatCondition::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
,
57 { &OReportEngineJFree::create
, &OReportEngineJFree::getImplementationName_Static
,
58 &OReportEngineJFree::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
,
60 { &OFunction::create
, &OFunction::getImplementationName_Static
,
61 &OFunction::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
, nullptr,
63 { &OShape::create
, &OShape::getImplementationName_Static
,
64 &OShape::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
, nullptr,
66 { &OFixedLine::create
, &OFixedLine::getImplementationName_Static
,
67 &OFixedLine::getSupportedServiceNames_Static
, &cppu::createSingleComponentFactory
,
69 { nullptr, nullptr, nullptr, nullptr, nullptr, 0 } };
73 SAL_DLLPUBLIC_EXPORT
void* rpt_component_getFactory(char const* implName
, void* serviceManager
,
76 return cppu::component_getFactoryHelper(implName
, serviceManager
, registryKey
, entries
);
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */