LibreOffice Module reportdesign (master) 1
services.cxx
Go to the documentation of this file.
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>
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>
31
32/********************************************************************************************/
33
34using namespace ::reportdesign;
35using namespace ::com::sun::star::uno;
36using namespace ::com::sun::star::lang;
37using namespace ::com::sun::star::registry;
38
39// registry functions
40namespace
41{
42cppu::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 } };
71}
72
73extern "C" {
74SAL_DLLPUBLIC_EXPORT void* rpt_component_getFactory(char const* implName, void* serviceManager,
75 void* registryKey)
76{
77 return cppu::component_getFactoryHelper(implName, serviceManager, registryKey, entries);
78}
79
80} // extern "C"
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::uno::XInterface >(SAL_CALL *ComponentFactoryFunc)(css CPPUHELPER_DLLPUBLIC css::uno::Reference< css::lang::XSingleComponentFactory > SAL_CALL createSingleComponentFactory(ComponentFactoryFunc fptr, ::rtl::OUString const &rImplementationName, css::uno::Sequence< ::rtl::OUString > const &rServiceNames, rtl_ModuleCount *pModCount=NULL)
void * component_getFactoryHelper(char const *pImplName, SAL_UNUSED_PARAMETER void *, SAL_UNUSED_PARAMETER void *, const struct ImplementationEntry entries[])
SAL_DLLPUBLIC_EXPORT void * rpt_component_getFactory(char const *implName, void *serviceManager, void *registryKey)
Definition: services.cxx:74
const char * implName