bump product version to 7.6.3.2-android
[LibreOffice.git] / reportdesign / source / core / api / services.cxx
blobde07c51e8c2203df971acd44def1f5a3649e6bf9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
29 #include <Shape.hxx>
30 #include <FixedLine.hxx>
32 /********************************************************************************************/
34 using namespace ::reportdesign;
35 using namespace ::com::sun::star::uno;
36 using namespace ::com::sun::star::lang;
37 using namespace ::com::sun::star::registry;
39 // registry functions
40 namespace
42 cppu::ImplementationEntry const entries[]
43 = { { &OReportDefinition::create, &OReportDefinition::getImplementationName_Static,
44 &OReportDefinition::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
45 nullptr, 0 },
46 { &OFormattedField::create, &OFormattedField::getImplementationName_Static,
47 &OFormattedField::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
48 nullptr, 0 },
49 { &OFixedText::create, &OFixedText::getImplementationName_Static,
50 &OFixedText::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
51 nullptr, 0 },
52 { &OImageControl::create, &OImageControl::getImplementationName_Static,
53 &OImageControl::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
54 nullptr, 0 },
55 { &OFormatCondition::create, &OFormatCondition::getImplementationName_Static,
56 &OFormatCondition::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
57 nullptr, 0 },
58 { &OReportEngineJFree::create, &OReportEngineJFree::getImplementationName_Static,
59 &OReportEngineJFree::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
60 nullptr, 0 },
61 { &OFunction::create, &OFunction::getImplementationName_Static,
62 &OFunction::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory, nullptr,
63 0 },
64 { &OShape::create, &OShape::getImplementationName_Static,
65 &OShape::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory, nullptr,
66 0 },
67 { &OFixedLine::create, &OFixedLine::getImplementationName_Static,
68 &OFixedLine::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
69 nullptr, 0 },
70 { nullptr, nullptr, nullptr, nullptr, nullptr, 0 } };
73 extern "C" {
74 SAL_DLLPUBLIC_EXPORT void* rpt_component_getFactory(char const* implName, void* serviceManager,
75 void* registryKey)
77 return cppu::component_getFactoryHelper(implName, serviceManager, registryKey, entries);
80 } // extern "C"
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */